1.0.2 • Published 7 years ago

png-bound-nodejs v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

png-bound-nodejs

get png bound with nodejs (ES6)

install

npm install --save png-bound-nodejs

example

const {getBound} = require('png-bound-nodejs');

const fs = require('fs');
fs.readFile('png file', function (err, data) {
	getBound(data).then(
		(bound)=>{
			console.log(bound);
		},
		(error)=>{
			console.log(error);
		}
	);
});

//out: {x, y, width, height}
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago