device
Place an image in a device.
installation
npm i -S @compositor/device
usage
const device = require('@compositor/device')
device('compositor-io.png', {
device: 'iphone-7-plus',
dest: 'my/dir'
})
options
options | default | values |
---|---|---|
device |
undefiend |
iphone-7-plus , iphone-5c , macbook , imac
|
dest |
__dirname |
A file path, ex: my/dir/for/screenshots
|
contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by Compositor (@getcompositor).