vinyl-imitate

Clone a vinyl file with new contents

Usage no npm install needed!

<script type="module">
  import vinylImitate from 'https://cdn.skypack.dev/vinyl-imitate';
</script>

README

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