Comparing version 0.0.6 to 1.0.0
@@ -12,3 +12,3 @@ function fromBase64(base64string) { | ||
if (Buffer.isBuffer(base64UrlString)) | ||
base64UrlString = base64UrlString.toString() | ||
base64UrlString = base64UrlString.toString(); | ||
@@ -52,4 +52,5 @@ const b64str = padString(base64UrlString) | ||
base64url.decode = decodeBase64Url; | ||
base64url.encode = base64url; | ||
base64url.toBuffer = toBuffer; | ||
module.exports = base64url; |
{ | ||
"name": "base64url", | ||
"version": "0.0.6", | ||
"version": "1.0.0", | ||
"description": "For encoding to/from base64urls", | ||
"main": "index.js", | ||
"bin": { | ||
"base64url": "./bin/base64url" | ||
}, | ||
"scripts": { | ||
@@ -23,3 +26,7 @@ "test": "./node_modules/.bin/tap test/*.test.js" | ||
"tap": "~0.3.3" | ||
}, | ||
"dependencies": { | ||
"concat-stream": "^1.4.7", | ||
"meow": "^2.0.0" | ||
} | ||
} |
@@ -13,3 +13,18 @@ # base64url [![Build Status](https://secure.travis-ci.org/brianloveswords/base64url.png)](http://travis-ci.org/brianloveswords/base64url) | ||
This package includes a CLI which can be used thusly: | ||
```bash | ||
$ npm install -g base64url | ||
$ echo 'Here is some text to encode' | base64url | ||
> SGVyZSBpcyBzb21lIHRleHQgdG8gZW5jb2RlCg | ||
$ echo SGVyZSBpcyBzb21lIHRleHQgdG8gZW5jb2RlCg | base64url -D | ||
> Here is some text to encode | ||
``` | ||
Or it can be used as a library, of course: | ||
## base64url(stringOrBuffer) | ||
## base64url.encode(stringOrBuffer) | ||
base64url encode `stringOrBuffer` | ||
@@ -64,3 +79,3 @@ | ||
``` | ||
Copyright (c) 2013 Brian J. Brennan | ||
Copyright (c) 2014 Brian J. Brennan | ||
@@ -86,2 +101,1 @@ Permission is hereby granted, free of charge, to any person obtaining a | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
97240
9
95
1
99
2
+ Addedconcat-stream@^1.4.7
+ Addedmeow@^2.0.0
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcamelcase@1.2.1(transitive)
+ Addedcamelcase-keys@1.0.0(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedindent-string@1.2.2(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedmap-obj@1.0.1(transitive)
+ Addedmeow@2.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrepeating@1.1.3(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedutil-deprecate@1.0.2(transitive)