Convert an object to a vinyl file object. Safely mixes additional properties onto the file object without overwriting properties added by vinyl.
Install with npm
$ npm i to-vinyl --save
var toVinyl = require('to-vinyl');
toVinyl({path: 'foo.hbs', content: 'this is foo'});
//=> <File "foo.hbs" <Buffer 74 68 69 73 20 69 73 20 66 6f 6f>>
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Brian Woodward
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on July 17, 2015.