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

base64-stream

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base64-stream

Contains new Node.js v0.10 style stream classes for encoding / decoding Base64 data

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
453K
increased by1.78%
Maintainers
1
Weekly downloads
 
Created

What is base64-stream?

The base64-stream npm package provides a streaming interface for encoding and decoding data in base64 format. It is particularly useful for handling large amounts of data that need to be processed in chunks, such as files or network streams.

What are base64-stream's main functionalities?

Base64 Encoding

This feature allows you to encode a stream of data into base64 format. In this example, the contents of 'input.txt' are read, encoded in base64, and then written to 'output.txt'.

const fs = require('fs');
const base64 = require('base64-stream');

fs.createReadStream('input.txt')
  .pipe(base64.encode())
  .pipe(fs.createWriteStream('output.txt'));

Base64 Decoding

This feature allows you to decode a base64-encoded stream of data. In this example, the contents of 'input.txt' are read, decoded from base64, and then written to 'output.txt'.

const fs = require('fs');
const base64 = require('base64-stream');

fs.createReadStream('input.txt')
  .pipe(base64.decode())
  .pipe(fs.createWriteStream('output.txt'));

Other packages similar to base64-stream

Keywords

FAQs

Package last updated on 09 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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