passthrough-encoding
An encoder that encodes buffers/strings to a buffer and is abstract-encoding compatible
Last updated 8 years ago by mafintosh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install passthrough-encoding 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.0                                ...           latest (8 years ago)

3 Versions

  • 1.2.0                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |