pull-vinyl
Read and write
Vinyl
objects in the file system.
Reading and writing Vinyl
objects to/from the file system with pull streams. It is inspired from vinyl-fs
from gulp.
Installation
$ npm install --save pull-vinyl
API
vinyl.src(pattern, [options])
Read Vinyl
objects from the file system with patterns from pull-glob
. You can use vinyl.read
as an alias.
pattern
: A glob pattern resolved bypull-glob
.options
(Object
): Options for reading.
It works as a pull stream source:
vinyl.dest([base]])
Write Vinyl
objects at the directory
base. You can use vinyl.write
as an alias.
base
(String
): The base directory for theVinyl
objects. Defaults tofile.base
.
vinyl.map(name, [base])
Maps data into vinyl files. Essentially vinyl-source-stream
as a pull-stream.
name
(String
|Function
): String of file's name, or a function to handle per item.base
(String
|Function
): Optional base directory string, or a function to handle per item.
License
MIT © Jamen Marz