Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parse-png

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-png - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

3

index.js

@@ -21,2 +21,5 @@ 'use strict';

obj.data = data;
obj.adjustGamma = png.adjustGamma.bind(png);
obj.bitblt = png.bitblt.bind(png);
obj.pack = png.pack.bind(png);
resolve(obj);

@@ -23,0 +26,0 @@ });

4

package.json
{
"name": "parse-png",
"version": "1.0.0",
"version": "1.1.0",
"description": "Parse a PNG",

@@ -31,2 +31,4 @@ "license": "MIT",

"ava": "*",
"file-type": "^3.8.0",
"get-stream": "^2.0.0",
"pify": "^2.3.0",

@@ -33,0 +35,0 @@ "xo": "*"

@@ -19,4 +19,4 @@ # parse-png [![Build Status](https://travis-ci.org/kevva/parse-png.svg?branch=master)](https://travis-ci.org/kevva/parse-png)

parsePng(fs.readFileSync('unicorn.png')).then(data => {
console.log(data);
parsePng(fs.readFileSync('unicorn.png')).then(png => {
console.log(png);
/*

@@ -33,5 +33,8 @@ {

colorType: 2,
data: <Buffer 29 48 4d ...>
data: <Buffer 29 48 4d ...>,
}
*/
png.adjustGamma();
png.pack().pipe(fs.createWriteStream('unicorn-adjusted.png'));
});

@@ -38,0 +41,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc