Browse Source

Merge pull request #30 from fanatid/feature/package

Update package structure
master
Feross Aboukhadijeh 9 years ago
committed by GitHub
parent
commit
4a1f4ec11f
  1. 2
      .gitignore
  2. 1
      .npmignore
  3. 15
      .travis.yml
  4. 0
      LICENSE
  5. 0
      index.js
  6. 25
      package.json
  7. 2
      test/big-data.js
  8. 2
      test/convert.js
  9. 2
      test/url-safe.js

2
.gitignore

@ -0,0 +1,2 @@
node_modules
npm-debug.log

1
.npmignore

@ -1 +0,0 @@
bench

15
.travis.yml

@ -1,6 +1,17 @@
sudo: false
os:
- linux
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "node"
- "6"
env:
matrix:
- TEST_SUITE=unit
matrix:
include:
- os: linux
node_js: "6"
env: TEST_SUITE=lint
script: npm run $TEST_SUITE

0
LICENSE.MIT → LICENSE

0
lib/b64.js → index.js

25
package.json

@ -1,19 +1,32 @@
{
"author": "T. Jameson Little <t.jameson.little@gmail.com>",
"name": "base64-js",
"description": "Base64 encoding/decoding in pure JS",
"version": "1.1.2",
"description": "Base64 encoding/decoding in pure JS",
"keywords": [
"base64"
],
"homepage": "https://github.com/beatgammit/base64-js",
"bugs": {
"url": "https://github.com/beatgammit/base64-js/issues"
},
"license": "MIT",
"author": "T. Jameson Little <t.jameson.little@gmail.com>",
"files": [
"test",
"index.js",
"base64js.min.js"
],
"main": "index.js",
"repository": {
"type": "git",
"url": "git://github.com/beatgammit/base64-js.git"
},
"main": "lib/b64.js",
"scripts": {
"build": "browserify -s base64js -r ./ | uglifyjs -m > base64js.min.js",
"test": "standard && tape test/*.js"
"lint": "standard",
"test": "npm run lint && npm run unit",
"unit": "tape test/*.js"
},
"license": "MIT",
"dependencies": {},
"devDependencies": {
"benchmark": "^2.1.0",
"browserify": "^13.0.0",

2
test/big-data.js

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

2
test/convert.js

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

2
test/url-safe.js

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

Loading…
Cancel
Save