0.1.0 • Published 9 years ago

lwip-promise v0.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
9 years ago

lwip Promise

Promisified lwip library. Thanks @raine. This repo inspired by https://github.com/EyalAr/lwip/issues/63.

Installation

npm install lwip-promise

Usage

var lwip = require('lwip-promise');

lwip.openAsync('image.jpg')
  .then(function(image) {
    return image.batch()
      .rotate(45, 'white')
      .scale(0.5)
      .blur(5)
      .writeFileAsync('output.jpg');
  }).catch(function(err) {
    console.error(err.message);
  });

License

MIT