gulp-vfs

0.1.1 • Public • Published

gulp-vfs

Build Status

Virtual file system that works with Gulp.

Usage

gulp-vfs aims to provide a base file system interface which can be piped from or into with the .src and .dest method. So you might not want to use it directly.

Example of the interface:

var MyFS = require('my-fs-implement');
var fs = new MyFS({
    cwd: 'abc'
});
 
fs.src('assets/**/*.js')
    .pipe(middlewares)
    .pipe(fs.dest('dist'));

Builtin Implements

This package comes with 2 basic implements: localfs and memfs.

localfs

The normal file system.

var LocalFS = require('gulp-vfs/localfs');
var fs = new LocalFS(options);

memfs

The in memory file system.

var MemFS = require('gulp-vfs/memfs');
var fs = new MemFS(options);

TODO

  • Streaming
  • The watcher interface

Changelog

v0.1.0 (2014-09-19)

Initial release

Readme

Keywords

Package Sidebar

Install

npm i gulp-vfs

Weekly Downloads

5

Version

0.1.1

License

MIT

Last publish

Collaborators

  • dong