Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

b64

Package Overview
Dependencies
1
Maintainers
2
Versions
12
Issues
File Explorer

Advanced tools

b64

Base64 streaming encoder and decoder

    4.1.2latest

Version published
Maintainers
2
Weekly downloads
81,112
increased by12.47%

Weekly downloads

Readme

Source

Base64 streaming encoder and decoder

Build Status

Lead Maintainer - Wyatt Preul

Installation

npm install b64 --save

API

encode(buffer)

Base64 encode the buffer and return it as a new Buffer.

decode(buffer)

Base64 decode the buffer and return the result as a new buffer.

Encoder

Transform stream that base64 encodes each chunk of the stream.

Example:

'use strict'; const Fs = require('fs'); const B64 = require('b64'); const stream = Fs.createReadStream(`${__dirname}/package.json`); const encoder = new B64.Encoder(); stream.pipe(encoder).pipe(process.stdout);

Decoder

Transform stream that base64 decodes each chunk of the stream.

Example:

'use strict'; const Fs = require('fs'); const B64 = require('b64'); const stream = Fs.createReadStream(`${__dirname}/encodedfile.b64`); const decoder = new B64.Decoder(); stream.pipe(decoder).pipe(process.stdout);

base64urlEncode(value)

Encodes value of string or buffer type in Base64 or URL encoding, function will assert input value is correct.

base64urlDecode(value)

Decodes string into Base64 or URL encoding, function throws an error on invalid input and returns a string or buffer depending on encoding provided. Default encoding is binary.

Keywords

FAQs

What is b64?

Base64 streaming encoder and decoder

Is b64 popular?

The npm package b64 receives a total of 65,438 weekly downloads. As such, b64 popularity was classified as popular.

Is b64 well maintained?

We found that b64 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 2 open source maintainers collaborating on the project.

Last updated on 03 Nov 2018

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc