New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

stream64

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream64

Base64 encode/decode stream.

latest
Source
npmnpm
Version
0.2.3
Version published
Maintainers
1
Created
Source

stream64 npm version

Base64 encode/decode stream.

Example

const Stream = require('stream')
const stream64 = require('stream64')

const stream = () => {
  const s = new Stream.Readable()
  s._read = () => {}
  return s
}

const s1 = stream()
s1.pipe(stream64.encode()).pipe(process.stdout)
s1.push('Hello, ') // 'Hello,' -> SGVsbG8s
s1.push('world\n') // ' world' -> IHdvcmxk
s1.push(null) // '!\n' -> IQo=

const s2 = stream()
s2.pipe(stream64.decode()).pipe(process.stdout)
s2.push('SGVsbG8sIHd') // SGVsbG8s -> 'Hello,'
s2.push('vcmxkIQo=') // IHdvcmxkIQo= -> ' world!\n'
s2.push(null)

FAQs

Package last updated on 25 May 2015

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