Socket
Socket
Sign inDemoInstall

base-64

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 1.0.0

5

base64.js

@@ -1,2 +0,2 @@

/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
;(function(root) {

@@ -94,3 +94,2 @@

var c;
var d;
var buffer;

@@ -141,3 +140,3 @@ // Make sure any padding is handled outside of the loop.

'decode': decode,
'version': '0.1.0'
'version': '1.0.0'
};

@@ -144,0 +143,0 @@

2

LICENSE-MIT.txt

@@ -1,2 +0,2 @@

Copyright Mathias Bynens <http://mathiasbynens.be/>
Copyright Mathias Bynens <https://mathiasbynens.be/>

@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining

{
"name": "base-64",
"version": "0.1.0",
"version": "1.0.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",

@@ -15,11 +15,6 @@ "keywords": [

],
"licenses": [
{
"type": "MIT",
"url": "http://mths.be/mit"
}
],
"license": "MIT",
"author": {
"name": "Mathias Bynens",
"url": "http://mathiasbynens.be/"
"url": "https://mathiasbynens.be/"
},

@@ -30,5 +25,3 @@ "repository": {

},
"bugs": {
"url": "https://github.com/mathiasbynens/base64/issues"
},
"bugs": "https://github.com/mathiasbynens/base64/issues",
"files": [

@@ -38,17 +31,16 @@ "LICENSE-MIT.txt",

],
"directories": {
"test": "tests"
},
"scripts": {
"test": "node tests/tests.js"
"test": "mocha tests/tests.js",
"build": "grunt build"
},
"devDependencies": {
"grunt": "~0.4.4",
"grunt-shell": "~0.7.0",
"grunt-template": "~0.2.3",
"istanbul": "~0.2.7",
"qunit-extras": "~1.1.0",
"qunitjs": "~1.11.0",
"requirejs": "~2.1.11"
"coveralls": "^2.11.4",
"grunt": "^0.4.5",
"grunt-cli": "^1.3.2",
"grunt-shell": "^1.1.2",
"grunt-template": "^0.2.3",
"istanbul": "^0.4.0",
"mocha": "^6.2.0",
"regenerate": "^1.2.1"
}
}

@@ -1,8 +0,8 @@

# base64 [![Build status](https://travis-ci.org/mathiasbynens/base64.svg?branch=master)](https://travis-ci.org/mathiasbynens/base64) [![Dependency status](https://gemnasium.com/mathiasbynens/base64.svg)](https://gemnasium.com/mathiasbynens/base64)
# 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)
_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
Via [npm](http://npmjs.org/):
Via [npm](https://www.npmjs.com/):

@@ -13,14 +13,2 @@ ```bash

Via [Bower](http://bower.io/):
```bash
bower install base-64
```
Via [Component](https://github.com/component/component):
```bash
component install mathiasbynens/base64
```
In a browser:

@@ -32,3 +20,3 @@

In [Narwhal](http://narwhaljs.org/), [Node.js](http://nodejs.org/), and [RingoJS](http://ringojs.org/):
In [Narwhal](http://narwhaljs.org/), [Node.js](https://nodejs.org/), and [RingoJS](http://ringojs.org/):

@@ -69,3 +57,3 @@ ```js

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).

@@ -91,3 +79,3 @@ ```js

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).

@@ -124,6 +112,6 @@ ```js

|---|
| [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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc