0.2.2 • Published 9 years ago
vinyl-write v0.2.2
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-writeUsage
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