vinyl-write

0.2.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i vinyl-write

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • jamen