1.2.0 • Published 9 years ago

vinyl-to-object v1.2.0

Weekly downloads
14
License
-
Repository
github
Last release
9 years ago

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

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago