Socket
Socket
Sign inDemoInstall

buffer-image

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

buffer-image

Convert a buffer to and from png image data.


Version published
Maintainers
1
Weekly downloads
164
decreased by-36.92%
Install size
23.8 MB

Weekly downloads

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

FAQs

Last updated on 22 Jun 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc