passthrough-encoding

v1.1.0
An encoder that encodes buffers/strings to a buffer and is abstract-encoding compatible

passthrough-encoding

An encoder that encodes buffers/strings to a buffer and is abstract-encoding compatible

npm install passthrough-encoding

abstract-encoding build status

Usage

var enc = require('passthrough-encoding')

console.log(enc.encode(Buffer('hello'))) // prints Buffer('hello')
console.log(enc.encode('hello')) // prints Buffer('hello')

API

See mafintosh/abstract-encoding

License

MIT

Metadata

  • MIT
  • Whatever
  • Mathias Buus
  • released 5/23/2016

Downloads

Maintainers