vinyl-to-object
v1.2.0
Published
Store virtual file format as regular object
Downloads
3
Readme
vinyl-to-object
Store virtual file format as regular object
Install
npm install --save vinyl-to-object
Example
var File = require('vinyl');
var copy = require('vinyl-to-object');
var file = new File({
cwd: 'test',
base: 'test',
path: '/test/test.txt',
contents: new Buffer('unicorn')
});
var duplicatedFile = copy(file);
opts
file
Type: vinyl file
Vinyl file to convert
License
MIT © Daniel Husar