Socket
Socket
Sign inDemoInstall

base64-url

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base64-url - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc