1.2.0 • Published 8 years ago

passthrough-encoding v1.2.0

Weekly downloads
11
License
MIT
Repository
github
Last release
8 years ago

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