Browse Source

Move lib/b64.js to index.js

master
Kirill Fomichev 8 years ago
parent
commit
a5f9ec7d8a
  1. 0
      index.js
  2. 2
      package.json
  3. 2
      test/big-data.js
  4. 2
      test/convert.js
  5. 2
      test/url-safe.js

0
lib/b64.js → index.js

2
package.json

@ -7,7 +7,7 @@
"type": "git", "type": "git",
"url": "git://github.com/beatgammit/base64-js.git" "url": "git://github.com/beatgammit/base64-js.git"
}, },
"main": "lib/b64.js", "main": "index.js",
"scripts": { "scripts": {
"build": "browserify -s base64js -r ./ | uglifyjs -m > base64js.min.js", "build": "browserify -s base64js -r ./ | uglifyjs -m > base64js.min.js",
"test": "standard && tape test/*.js" "test": "standard && tape test/*.js"

2
test/big-data.js

@ -1,5 +1,5 @@
var test = require('tape') var test = require('tape')
var b64 = require('../lib/b64') var b64 = require('../')
test('convert big data to base64', function (t) { test('convert big data to base64', function (t) {
var b64str, arr, i, length var b64str, arr, i, length

2
test/convert.js

@ -1,5 +1,5 @@
var test = require('tape') var test = require('tape')
var b64 = require('../lib/b64') var b64 = require('../')
var checks = [ var checks = [
'a', 'a',
'aa', 'aa',

2
test/url-safe.js

@ -1,5 +1,5 @@
var test = require('tape') var test = require('tape')
var b64 = require('../lib/b64') var b64 = require('../')
test('decode url-safe style base64 strings', function (t) { test('decode url-safe style base64 strings', function (t) {
var expected = [0xff, 0xff, 0xbe, 0xff, 0xef, 0xbf, 0xfb, 0xef, 0xff] var expected = [0xff, 0xff, 0xbe, 0xff, 0xef, 0xbf, 0xfb, 0xef, 0xff]

Loading…
Cancel
Save