vinyl-imitate

1.0.0 • Public • Published

vinyl-imitate

Clone a vinyl file, but with new contents.

npm status Dependency status

example

var imitate = require('vinyl-imitate')
var clone = imitate(someFile, someBuffer)

api

imitate(file, newContents = null, opts = {})

Returns a clone of the vinyl-compatible file. newContents can be null, stream or buffer. Options are passed to clone().

install

With npm do:

npm install vinyl-imitate

license

MIT © Vincent Weevers

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

Package Sidebar

Install

npm i vinyl-imitate

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vweevers