png_colour_type

1.1.0 • Public • Published

png-colour-type

Gets the colour type of a PNG

Usage:

asynchronous

Errors are reported, except for close error.

var png_colour_type = require('png_colour_type');

png_colour_type.withPromise('path/to/file.png')
.then(colourType => {
    // something something darkside.
});
synchronous

For simplistity and less overhead, there is no internal catching of file system errors.

var png_colour_type = require('png_colour_type');

var colourType = png_colour_type('path/to/file.png');

Readme

Keywords

Package Sidebar

Install

npm i png_colour_type

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • wormss