🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

buffer-image

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buffer-image

Convert a buffer to and from png image data.

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
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

buffer

FAQs

Package last updated on 22 Jun 2020

Did you know?

Socket

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