Permalink
Browse files

Use HTTPS URLs where possible

  • Loading branch information...
mathiasbynens committed Nov 21, 2014
1 parent eedad83 commit c605dea00939422cdd427e84e7d5ad4257badb60
Showing with 12 additions and 22 deletions.
  1. +1 −1 LICENSE-MIT.txt
  2. +5 −5 README.md
  3. +1 −1 base64.js
  4. +4 −14 package.json
  5. +1 −1 src/base64.js
View
@@ -1,4 +1,4 @@
Copyright Mathias Bynens <http://mathiasbynens.be/>
Copyright Mathias Bynens <https://mathiasbynens.be/>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
@@ -1,6 +1,6 @@
# base64 [![Build status](https://travis-ci.org/mathiasbynens/base64.svg?branch=master)](https://travis-ci.org/mathiasbynens/base64) [![Code coverage status](http://img.shields.io/coveralls/mathiasbynens/base64/master.svg)](https://coveralls.io/r/mathiasbynens/base64) [![Dependency status](https://gemnasium.com/mathiasbynens/base64.svg)](https://gemnasium.com/mathiasbynens/base64)
_base64_ is a robust base64 encoder/decoder that is fully compatible with [`atob()` and `btoa()`](http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#atob), written in JavaScript. The base64-encoding and -decoding algorithms it uses are fully [RFC 4648](http://tools.ietf.org/html/rfc4648#section-4) compliant.
_base64_ is a robust base64 encoder/decoder that is fully compatible with [`atob()` and `btoa()`](https://html.spec.whatwg.org/multipage/webappapis.html#atob), written in JavaScript. The base64-encoding and -decoding algorithms it uses are fully [RFC 4648](https://tools.ietf.org/html/rfc4648#section-4) compliant.
## Installation
@@ -64,7 +64,7 @@ A string representing the semantic version number.
### `base64.encode(input)`
This function takes a byte string (the `input` parameter) and encodes it according to base64. The input data must be in the form of a string containing only characters in the range from U+0000 to U+00FF, each representing a binary byte with values `0x00` to `0xFF`. The `base64.encode()` function is designed to be fully compatible with [`btoa()` as described in the HTML Standard](http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#dom-windowbase64-btoa).
This function takes a byte string (the `input` parameter) and encodes it according to base64. The input data must be in the form of a string containing only characters in the range from U+0000 to U+00FF, each representing a binary byte with values `0x00` to `0xFF`. The `base64.encode()` function is designed to be fully compatible with [`btoa()` as described in the HTML Standard](https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-btoa).
```js
var encodedData = base64.encode(input);
@@ -85,7 +85,7 @@ console.log(encoded);
### `base64.decode(input)`
This function takes a base64-encoded string (the `input` parameter) and decodes it. The return value is in the form of a string containing only characters in the range from U+0000 to U+00FF, each representing a binary byte with values `0x00` to `0xFF`. The `base64.decode()` function is designed to be fully compatible with [`atob()` as described in the HTML Standard](http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#dom-windowbase64-atob).
This function takes a base64-encoded string (the `input` parameter) and decodes it. The return value is in the form of a string containing only characters in the range from U+0000 to U+00FF, each representing a binary byte with values `0x00` to `0xFF`. The `base64.decode()` function is designed to be fully compatible with [`atob()` as described in the HTML Standard](https://html.spec.whatwg.org/multipage/webappapis.html#dom-windowbase64-atob).
```js
var decodedData = base64.decode(encodedData);
@@ -117,8 +117,8 @@ To generate the code coverage report, use `grunt cover`.
| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|
| [Mathias Bynens](http://mathiasbynens.be/) |
| [Mathias Bynens](https://mathiasbynens.be/) |
## License
_base64_ is available under the [MIT](http://mths.be/mit) license.
_base64_ is available under the [MIT](https://mths.be/mit) license.
View
@@ -1,4 +1,4 @@
/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */
/*! https://mths.be/base64 v0.1.0 by @mathias | MIT license */
;(function(root) {
// Detect free variables `exports`.
View
@@ -2,7 +2,7 @@
"name": "base-64",
"version": "0.1.0",
"description": "A robust base64 encoder/decoder that is fully compatible with `atob()` and `btoa()`, written in JavaScript.",
"homepage": "http://mths.be/base64",
"homepage": "https://mths.be/base64",
"main": "base64.js",
"keywords": [
"codec",
@@ -12,30 +12,20 @@
"atob",
"btoa"
],
"licenses": [
{
"type": "MIT",
"url": "http://mths.be/mit"
}
],
"license": "MIT",
"author": {
"name": "Mathias Bynens",
"url": "http://mathiasbynens.be/"
"url": "https://mathiasbynens.be/"
},
"repository": {
"type": "git",
"url": "https://github.com/mathiasbynens/base64.git"
},
"bugs": {
"url": "https://github.com/mathiasbynens/base64/issues"
},
"bugs": "https://github.com/mathiasbynens/base64/issues",
"files": [
"LICENSE-MIT.txt",
"base64.js"
],
"directories": {
"test": "tests"
},
"scripts": {
"test": "node tests/tests.js"
},
View
@@ -1,4 +1,4 @@
/*! http://mths.be/base64 v<%= version %> by @mathias | MIT license */
/*! https://mths.be/base64 v<%= version %> by @mathias | MIT license */
;(function(root) {
// Detect free variables `exports`.

0 comments on commit c605dea

Please sign in to comment.