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>>
- stream-loader: create a read stream from a glob of files. can be used as a loader-cache… more
- src-stream: Wrap readable streams to turn them into passthrough streams.
- to-template: Convert a vinyl file object to a Template-compatible template object.
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinekrt
Copyright © 2015 Jon Schlinekrt Released under the MIT license.
This file was generated by verb-cli on July 17, 2015.