Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

Keywords

install

npm i vinyl-imitate

Downloadsweekly downloads

1

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar