vinyl-write
v0.2.2
Published
Write vinyl objects to the file system
Downloads
9
Readme
vinyl-write
Write vinyl objects to the file system
const write = require('vinyl-write')
const Vinyl = require('vinyl')
// Get a `Vinyl` object somehow
const file = new Vinyl({ ...options })
// Write it
write(file, function (err) {
if (err) console.error(err)
})
Installation
$ npm install --save vinyl-write
Usage
write(file, [callback])
Writes a Vinyl
object to the file system, with a completion callback.
file
(Vinyl
): Vinyl object you are writing.callback
(function
): Optional completion callback.
The callback receives (err)
as parameter.
write(file, function (err) {
// ...
})
License
MIT © Jamen Marzonie