Skip to content

v1.4.0

Compare
Choose a tag to compare
@mster mster released this 07 Jul 00:43

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)
    }
  )
})()