vinyl-to-object

1.2.0 • Public • Published

vinyl-to-object Build Status

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

/vinyl-to-object/

    Package Sidebar

    Install

    npm i vinyl-to-object

    Weekly Downloads

    1

    Version

    1.2.0

    License

    none

    Last publish

    Collaborators

    • efrafa