0.2.2 • Published 7 years ago

vinyl-write v0.2.2

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

vinyl-write NPM version Build Status

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