HEX
Server: Apache/2.4.18 (Ubuntu)
System: Linux ubuntu 7.0.5-x86_64-linode173 #1 SMP PREEMPT_DYNAMIC Fri May 8 10:12:05 EDT 2026 x86_64
User: root (0)
PHP: 7.2.28-1+ubuntu16.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //opt/code/node_modules/cssnano/node_modules/postcss/node_modules/js-base64/package.json
{
  "name": "js-base64",
  "version": "2.4.5",
  "description": "Yet another Base64 transcoder in pure-JS",
  "main": "base64.js",
  "directories": {
    "test": "test"
  },
  "scripts": {
    "test": "mocha --compilers js:babel-register"
  },
  "devDependencies": {
    "babel-preset-es2015": "^6.24.1",
    "babel-register": "^6.26.0",
    "mocha": "*"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/dankogai/js-base64.git"
  },
  "keywords": [
    "base64"
  ],
  "author": {
    "name": "Dan Kogai"
  },
  "license": "BSD-3-Clause",
  "readmeFilename": "README.md",
  "gitHead": "8bfa436f733bec60c95c720e1d720c28b43ae0b2",
  "readme": "[![build status](https://secure.travis-ci.org/dankogai/js-base64.png)](http://travis-ci.org/dankogai/js-base64)\n\n# base64.js\n\nYet another Base64 transcoder\n\n## Install\n\n```javascript\n$ npm install --save js-base64\n```\n\nIf you are using it on ES6 transpilers, you may also need:\n\n```javascript\n$ npm install --save babel-preset-es2015\n```\n\nNote `js-base64` itself is stand-alone so its `package.json` has no `dependencies`.  However, it is also tested on ES6 environment so `\"babel-preset-es2015\": \"^6.24.1\"` is on `devDependencies`.\n\n\n## Usage\n\n### In Browser\n\n```html\n<script src=\"base64.js\"></script>\n```\n\n### node.js\n\n```javascript\nvar Base64 = require('js-base64').Base64;\n```\n\n## es6+\n\n```javascript\nimport { Base64 } from 'js-base64';\n```\n\n## SYNOPSIS\n\n```javascript\nBase64.encode('dankogai');  // ZGFua29nYWk=\nBase64.encode('小飼弾');    // 5bCP6aO85by+\nBase64.encodeURI('小飼弾'); // 5bCP6aO85by-\n\nBase64.decode('ZGFua29nYWk=');  // dankogai\nBase64.decode('5bCP6aO85by+');  // 小飼弾\n// note .decodeURI() is unnecessary since it accepts both flavors\nBase64.decode('5bCP6aO85by-');  // 小飼弾\n```\n\n### String Extension for ES5\n\n```javascript\nif (Base64.extendString) {\n    // you have to explicitly extend String.prototype\n    Base64.extendString();\n    // once extended, you can do the following\n    'dankogai'.toBase64();       // ZGFua29nYWk=\n    '小飼弾'.toBase64();         // 5bCP6aO85by+\n    '小飼弾'.toBase64(true);     // 5bCP6aO85by-\n    '小飼弾'.toBase64URI();      // 5bCP6aO85by-\n    'ZGFua29nYWk='.fromBase64(); // dankogai\n    '5bCP6aO85by+'.fromBase64(); // 小飼弾\n    '5bCP6aO85by-'.fromBase64(); // 小飼弾\n}\n```\n\n### TypeScript\n\nTypeScript 2.0 type definition was added to the [DefinitelyTyped repository](https://github.com/DefinitelyTyped/DefinitelyTyped).\n\n```bash\n$ npm install --save @types/js-base64\n```\n\n## `.decode()` vs `.atob` (and `.encode()` vs `btoa()`)\n\nSuppose you have:\n\n```\nvar pngBase64 = \n  \"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=\";\n```\n\nWhich is a Base64-encoded 1x1 transparent PNG, **DO NOT USE** `Base64.decode(pngBase64)`.  Use `Base64.atob(pngBase64)` instead.  `Base64.decode()` decodes to UTF-8 string while `Base64.atob()` decodes to bytes, which is compatible to browser built-in `atob()` (Which is absent in node.js).  The same rule applies to the opposite direction.\n\n\n## SEE ALSO\n\n+ http://en.wikipedia.org/wiki/Base64\n",
  "bugs": {
    "url": "https://github.com/dankogai/js-base64/issues"
  },
  "_id": "js-base64@2.4.5",
  "dist": {
    "shasum": "148f111723a7ef5ce826ccc7a14813efc8a9087d"
  },
  "_from": "js-base64@^2.1.9",
  "_resolved": "http://registry.npmjs.org/js-base64/-/js-base64-2.4.5.tgz"
}