buffer-image
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

buffer-image Travis CI Build Status

Convert a buffer to and from png image data.

NPM Badge

Install

npm install buffer-image

Usage

const bufferImage = require("buffer-image");
 
(async () => {
    const image = await bufferImage(Buffer.from("Hello World"));
 
    const result = await bufferImage.from(image)
    console.log(result.toString())
    //=> "Hello World"
})()

API

bufferImage(input)

Convert a buffer to a png buffer.

bufferImage.from(input)

Convert a png buffer to a buffer.

input

Type: string

The buffer to convert.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    266
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    266

Package Sidebar

Install

npm i buffer-image

Weekly Downloads

203

Version

1.0.0

License

MIT

Unpacked Size

4.17 kB

Total Files

6

Last publish

Collaborators

  • richienb