diff options
Diffstat (limited to 'deps/npm/node_modules/fstream-npm/example/dir-tar.js')
-rw-r--r-- | deps/npm/node_modules/fstream-npm/example/dir-tar.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/deps/npm/node_modules/fstream-npm/example/dir-tar.js b/deps/npm/node_modules/fstream-npm/example/dir-tar.js index f2bad92e0d8..393c796b2e3 100644 --- a/deps/npm/node_modules/fstream-npm/example/dir-tar.js +++ b/deps/npm/node_modules/fstream-npm/example/dir-tar.js @@ -1,18 +1,18 @@ // this will show what ends up in the fstream-npm package -var P = require("fstream").DirReader -var tar = require("tar") +var P = require('fstream').DirReader +var tar = require('tar') function f (entry) { - return entry.basename !== ".git" + return entry.basename !== '.git' } -new P({ path: "./", type: "Directory", Directory: true, filter: f }) - .on("package", function (p) { - console.error("package", p) +new P({ path: './', type: 'Directory', Directory: true, filter: f }) + .on('package', function (p) { + console.error('package', p) }) - .on("ignoreFile", function (e) { - console.error("ignoreFile", e) + .on('ignoreFile', function (e) { + console.error('ignoreFile', e) }) - .on("entry", function (e) { + .on('entry', function (e) { console.error(e.constructor.name, e.path.substr(e.root.path.length + 1)) }) .pipe(tar.Pack()) |