1.0.0 • Published 10 years ago
vinyl-imitate v1.0.0
vinyl-imitate
Clone a vinyl file, but with new contents.
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-imitatelicense
1.0.0
10 years ago