{"_id":"vinyl-fs-that-respects-files","_rev":"5-fb86718d98372c7edfbd419e172ff0a4","name":"vinyl-fs-that-respects-files","description":"Vinyl adapter for the file system","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"vinyl-fs-that-respects-files","description":"Vinyl adapter for the file system","version":"1.0.1","homepage":"http://github.com/jbenet/vinyl-fs","repository":{"type":"git","url":"git://github.com/jbenet/vinyl-fs.git"},"author":"","main":"./index.js","files":["index.js","lib"],"dependencies":{"duplexify":"^3.2.0","glob-stream":"^5.0.0","glob-watcher":"^2.0.0","graceful-fs":"^4.0.0","gulp-sourcemaps":"^1.5.2","is-valid-glob":"^0.3.0","merge-stream":"^0.1.7","mkdirp":"^0.5.0","object-assign":"^3.0.0","through2":"^2.0.0","through2-filter":"^2.0.0","vinyl":"^0.5.0"},"devDependencies":{"buffer-equal":"^0.0.1","istanbul":"^0.3.0","istanbul-coveralls":"^1.0.1","jshint":"^2.4.1","mocha":"^2.0.0","mocha-lcov-reporter":"^0.0.2","rimraf":"^2.2.5","should":"^7.0.0","sinon":"^1.10.3"},"scripts":{"test":"jshint lib && mocha","coveralls":"istanbul cover _mocha && istanbul-coveralls"},"engines":{"node":">=0.10"},"license":"MIT","bugs":{"url":"https://github.com/wearefractal/vinyl-fs/issues"},"gitHead":"425cafe7ae1069631e86768e873197db1b4139e4","_id":"vinyl-fs-that-respects-files@1.0.1","_shasum":"b27fab56086723d575ece044bb81f3a62d4d9fe8","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"b27fab56086723d575ece044bb81f3a62d4d9fe8","tarball":"https://registry.npmjs.org/vinyl-fs-that-respects-files/-/vinyl-fs-that-respects-files-1.0.1.tgz","integrity":"sha512-xZMsM3RLqZ/6vtc6e9FLXTGEa1sqMKl9EFd5r8eUJLQN7m/l3PoWZUzjNW317uJaANh1dSxGE/0WfZSQTytSvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1mm/Uzn7ESiqanNMPkUqdNltvrtAc0zQCrgydBuLDfwIhAJFT78T96W5Jrmk9kde0lpGKaOGf8aXCJE4UXPsPU5GM"}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}]},"1.0.2":{"name":"vinyl-fs-that-respects-files","description":"Vinyl adapter for the file system","version":"1.0.2","homepage":"http://github.com/jbenet/vinyl-fs","repository":{"type":"git","url":"git://github.com/jbenet/vinyl-fs.git"},"author":"","browserify":{"transform":["brfs"]},"main":"./index.js","files":["index.js","lib"],"dependencies":{"brfs":"^1.4.1","duplexify":"^3.2.0","glob-stream":"^5.0.0","glob-watcher":"^2.0.0","graceful-fs":"^4.0.0","gulp-sourcemaps":"^1.5.2","is-valid-glob":"^0.3.0","merge-stream":"^0.1.7","mkdirp":"^0.5.0","object-assign":"^3.0.0","through2":"^2.0.0","through2-filter":"^2.0.0","vinyl":"^0.5.0"},"devDependencies":{"buffer-equal":"^0.0.1","istanbul":"^0.3.0","istanbul-coveralls":"^1.0.1","jshint":"^2.4.1","mocha":"^2.0.0","mocha-lcov-reporter":"^0.0.2","rimraf":"^2.2.5","should":"^7.0.0","sinon":"^1.10.3"},"scripts":{"test":"jshint lib && mocha","coveralls":"istanbul cover _mocha && istanbul-coveralls"},"engines":{"node":">=0.10"},"license":"MIT","bugs":{"url":"https://github.com/wearefractal/vinyl-fs/issues"},"directories":{"test":"test"},"gitHead":"d1af001abe4227cfd2b213e61d6489beab6c6008","_id":"vinyl-fs-that-respects-files@1.0.2","_shasum":"adda55b0d94004161309ada90eb0fde6e6edbe62","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.10.40","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"dist":{"shasum":"adda55b0d94004161309ada90eb0fde6e6edbe62","tarball":"https://registry.npmjs.org/vinyl-fs-that-respects-files/-/vinyl-fs-that-respects-files-1.0.2.tgz","integrity":"sha512-T1qVPBVaJfcXIMBDYsCM7jNrAJpxWcLgpT+jpZfU1wJcOnNnB/I806QtuBxzJOKkANaHYT15Z4Swd6d+ESMAvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJQHr+3HKRC02641KSl1UedxRAoT4BKf+01KkFk+G83AiAZE/xsxXOwkwCIBBau8Io1mKdCe/SnjYnSpR7f9HzLdw=="}]},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}]}},"readme":"# vinyl-fs [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]\n\n## Information\n\n<table>\n<tr>\n<td>Package</td><td>vinyl-fs</td>\n</tr>\n<tr>\n<td>Description</td>\n<td>Vinyl adapter for the file system</td>\n</tr>\n<tr>\n<td>Node Version</td>\n<td>>= 0.10</td>\n</tr>\n</table>\n\n## Usage\n\n```javascript\nvar map = require('map-stream');\nvar fs = require('vinyl-fs');\n\nvar log = function(file, cb) {\n  console.log(file.path);\n  cb(null, file);\n};\n\nfs.src(['./js/**/*.js', '!./js/vendor/*.js'])\n  .pipe(map(log))\n  .pipe(fs.dest('./output'));\n```\n\n## API\n\n### src(globs[, opt])\n\n- Takes a glob string or an array of glob strings as the first argument.\n- Globs are executed in order, so negations should follow positive globs. For example:\n\n```js\nfs.src(['!b*.js', '*.js'])\n```\n\nwould not exclude any files, but this would\n\n```js\nfs.src(['*.js', '!b*.js'])\n```\n\n- Possible options for the second argument:\n  - cwd - Specify the working directory the folder is relative to.\n    - Default is `process.cwd()`.\n  - base - Specify the folder relative to the cwd. This is used to determine the file names when saving in `.dest()`.\n    - Default is where the glob begins if any.\n    - Default is `process.cwd()` if there is no glob.\n  - buffer - `true` or `false` if you want to buffer the file.\n    - Default value is `true`.\n    - `false` will make `file.contents` a paused Stream.\n  - read - `true` or `false` if you want the file to be read or not. Useful for stuff like `rm`ing files.\n    - Default value is `true`.\n    - `false` will disable writing the file to disk via `.dest()`.\n  - since - `Date` or `number` if you only want files that have been modified since the time specified.\n  - passthrough - `true` or `false` if you want a duplex stream which passes items through and emits globbed files.\n    - Default is `false`.\n  - sourcemaps - `true` or `false` if you want files to have sourcemaps enabled.\n    - Default is `false`.\n  - Any glob-related options are documented in [glob-stream] and [node-glob].\n- Returns a Readable stream by default, or a Duplex stream if the `passthrough` option is set to `true`.\n- This stream emits matching [vinyl] File objects.\n\n_Note:_ UTF-8 BOM will be stripped from all files read with `.src`.\n\n### watch(globs[, opt, cb])\n\nThis is just [glob-watcher].\n\n- Takes a glob string or an array of glob strings as the first argument.\n- Possible options for the second argument:\n  - Any options are passed to [gaze].\n- Returns an EventEmitter.\n  - 'changed' event is emitted on each file change.\n- Optionally calls the callback on each change event.\n\n### dest(folder[, opt])\n\n- Takes a folder path as the first argument.\n- First argument can also be a function that takes in a file and returns a folder path.\n- Possible options for the second argument:\n  - cwd - Specify the working directory the folder is relative to.\n    - Default is `process.cwd()`.\n  - base - Specify the folder relative to the cwd. This is used to determine the file names when saving in `.dest()`.\n    - Default is the `cwd` resolves to the folder path.\n    - Can also be a function that takes in a file and returns a folder path.\n  - mode - Specify the mode the files should be created with.\n    - Default is the mode of the input file (file.stat.mode) if any.\n    - Default is the process mode if the input file has no mode property.\n  - dirMode - Specify the mode the directory should be created with.\n    - Default is the process mode.\n  - overwrite - Specify if existing files with the same path should be overwritten or not.\n    - Default is `true`, to always overwrite existing files.\n- Returns a Readable/Writable stream.\n- On write the stream will save the [vinyl] File to disk at the folder/cwd specified.\n- After writing the file to disk, it will be emitted from the stream so you can keep piping these around.\n- The file will be modified after being written to this stream:\n  - `cwd`, `base`, and `path` will be overwritten to match the folder.\n  - `stat.mode` will be overwritten if you used a mode parameter.\n  - `contents` will have it's position reset to the beginning if it is a stream.\n\n### symlink(folder[, opt])\n\n- Takes a folder path as the first argument.\n- First argument can also be a function that takes in a file and returns a folder path.\n- Possible options for the second argument:\n  - cwd - Specify the working directory the folder is relative to.\n    - Default is `process.cwd()`.\n  - base - Specify the folder relative to the cwd. This is used to determine the file names when saving in `.dest()`.\n    - Default is the `cwd` resolves to the folder path.\n    - Can also be a function that takes in a file and returns a folder path.\n  - dirMode - Specify the mode the directory should be created with.\n    - Default is the process mode.\n- Returns a Readable/Writable stream.\n- On write the stream will create a symbolic link (i.e. symlink) on disk at the folder/cwd specified.\n- After creating the symbolic link, it will be emitted from the stream so you can keep piping these around.\n- The file will be modified after being written to this stream:\n  - `cwd`, `base`, and `path` will be overwritten to match the folder.\n\n[glob-stream]: https://github.com/wearefractal/glob-stream\n[node-glob]: https://github.com/isaacs/node-glob\n[gaze]: https://github.com/shama/gaze\n[glob-watcher]: https://github.com/wearefractal/glob-watcher\n[vinyl]: https://github.com/wearefractal/vinyl\n\n[npm-url]: https://www.npmjs.com/package/vinyl-fs\n[npm-image]: https://badge.fury.io/js/vinyl-fs.svg\n[travis-url]: https://travis-ci.org/wearefractal/vinyl-fs\n[travis-image]: https://travis-ci.org/wearefractal/vinyl-fs.svg?branch=master\n[coveralls-url]: https://coveralls.io/r/wearefractal/vinyl-fs\n[coveralls-image]: https://img.shields.io/coveralls/wearefractal/vinyl-fs.svg?style=flat\n[depstat-url]: https://david-dm.org/wearefractal/vinyl-fs\n[depstat-image]: https://david-dm.org/wearefractal/vinyl-fs.svg\n","maintainers":[{"name":"jbenet","email":"juan@benet.ai"},{"name":"mappum","email":"mappum@gmail.com"}],"time":{"modified":"2022-06-28T17:30:46.896Z","created":"2015-08-12T21:12:21.407Z","1.0.1":"2015-08-12T21:12:21.407Z","1.0.2":"2015-08-14T15:10:02.478Z"},"homepage":"http://github.com/jbenet/vinyl-fs","repository":{"type":"git","url":"git://github.com/jbenet/vinyl-fs.git"},"bugs":{"url":"https://github.com/wearefractal/vinyl-fs/issues"},"license":"MIT","readmeFilename":"README.md"}