Noiseless Peaceful Morning

    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

    Install

    npm i vinyl-to-object

    DownloadsWeekly Downloads

    9

    Version

    1.2.0

    License

    none

    Last publish

    Collaborators

    • efrafa