Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

base64url

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base64url - npm Package Compare versions

Comparing version 0.0.6 to 1.0.0

bin/base64url

3

index.js

@@ -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

```
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