v1.4.0
Changes:
- Support passing multiple modes as array
- Clean up error messages
Example code:
;(function throwAnElbow () {
let read = require('fs').readFileSync
let write = require('fs').writeFileSync
let img = read('/path/to/read/in.jpg')
require('./index')(
{
read: img,
mode: ['vana', 'veneneux', 'fatcat']
},
(err, moshedImg) => {
if (err) return console.error(err)
console.log('Moshing Completed!')
write('/path/to/write/out.jpg', moshedImg)
}
)
})()