Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

buffer-image

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

buffer-image

Convert a buffer to and from png image data.

    1.0.0latest

Version published
Maintainers
1
Yearly downloads
17,841
increased by593.93%

Weekly downloads

Changelog

Source

Readme

Source

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.

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc