base64-url
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "base64-url", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Base64 encode, decode, escape and unescape for URL applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,16 +11,18 @@ # base64-url | ||
## API | ||
> base64url.encode('Node.js is awesome.'); | ||
Tm9kZS5qcyBpcyBhd2Vzb21lLg | ||
> base64url.decode('Tm9kZS5qcyBpcyBhd2Vzb21lLg'); | ||
Node.js is awesome. | ||
> base64url.escape('This+is/goingto+escape=='); | ||
This-is_goingto-escape | ||
> base64url.unescape('This-is_goingto-escape'); | ||
This+is/goingto+escape== | ||
```js | ||
base64url.encode('Node.js is awesome.'); | ||
// returns Tm9kZS5qcyBpcyBhd2Vzb21lLg | ||
base64url.decode('Tm9kZS5qcyBpcyBhd2Vzb21lLg'); | ||
// returns Node.js is awesome. | ||
base64url.escape('This+is/goingto+escape=='); | ||
// returns This-is_goingto-escape | ||
base64url.unescape('This-is_goingto-escape'); | ||
// returns This+is/goingto+escape== | ||
``` | ||
## Development | ||
@@ -53,3 +55,3 @@ | ||
``` js | ||
npm run open-coverage | ||
npm run coverage | ||
``` |
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
3523
56