{ "_id": "findit", "_rev": "54-f0e85bc196a72a6823180290d29409ae", "name": "findit", "description": "walk a directory tree recursively with events", "dist-tags": { "latest": "2.0.0" }, "versions": { "0.0.1": { "name": "findit", "version": "0.0.1", "description": "Walk a directory tree.", "main": "./index", "dependencies": { "seq": ">=0.1.7" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "_id": "findit@0.0.1", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "0.2.16", "_nodeVersion": "v0.3.8-pre", "directories": {}, "files": [ "" ], "_defaultsLoaded": true, "dist": { "shasum": "18decbe277d982776541d6736ac9aa70a2a562ae", "tarball": "https://registry.npmjs.org/findit/-/findit-0.0.1.tgz" } }, "0.0.2": { "name": "findit", "version": "0.0.2", "description": "Walk a directory tree.", "main": "./index", "dependencies": { "seq": ">=0.1.7" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "_id": "findit@0.0.2", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "0.2.16", "_nodeVersion": "v0.3.8-pre", "directories": {}, "files": [ "" ], "_defaultsLoaded": true, "dist": { "shasum": "e471665fac9445a990f4380be5a3e73800d68442", "tarball": "https://registry.npmjs.org/findit/-/findit-0.0.2.tgz" } }, "0.0.3": { "name": "findit", "version": "0.0.3", "description": "Walk a directory tree.", "main": "./index.js", "dependencies": { "seq": ">=0.1.7" }, "repository": { "type": "git", "url": "git://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "_id": "findit@0.0.3", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "0.3.7", "_nodeVersion": "v0.5.0-pre", "directories": {}, "files": [ "" ], "_defaultsLoaded": true, "dist": { "shasum": "0831fb0cc35b98aa142f2fbea37d9b95da0cab4e", "tarball": "https://registry.npmjs.org/findit/-/findit-0.0.3.tgz" } }, "0.0.4": { "name": "findit", "version": "0.0.4", "description": "Walk a directory tree.", "main": "./index.js", "dependencies": { "seq": ">=0.1.7" }, "repository": { "type": "git", "url": "git://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "devDependencies": {}, "_id": "findit@0.0.4", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.6", "_nodeVersion": "v0.5.0-pre", "_defaultsLoaded": true, "dist": { "shasum": "a7efad9bdae28ed39f1d9d99a8445360e9dd2496", "tarball": "https://registry.npmjs.org/findit/-/findit-0.0.4.tgz" }, "scripts": {}, "directories": {} }, "0.0.5": { "name": "findit", "version": "0.0.5", "description": "Walk a directory tree.", "main": "./index.js", "dependencies": { "seq": ">=0.1.7" }, "devDependencies": { "hashish": ">=0.0.2 <0.1", "expresso": "0.7.x" }, "repository": { "type": "git", "url": "git://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "_id": "findit@0.0.5", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.10", "_nodeVersion": "v0.5.0-pre", "_defaultsLoaded": true, "dist": { "shasum": "1da9daef8d38e6cd9ca1f5757d6813cf3167d2c0", "tarball": "https://registry.npmjs.org/findit/-/findit-0.0.5.tgz" }, "scripts": {}, "directories": {} }, "0.1.0": { "name": "findit", "version": "0.1.0", "description": "Walk a directory tree.", "main": "./index.js", "dependencies": { "seq": ">=0.1.7" }, "devDependencies": { "hashish": ">=0.0.2 <0.1", "expresso": "0.7.x" }, "repository": { "type": "git", "url": "git://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "_id": "findit@0.1.0", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.10", "_nodeVersion": "v0.5.0-pre", "_defaultsLoaded": true, "dist": { "shasum": "d9fdd35743858caaa82d3e53adb924a2417e9b2e", "tarball": "https://registry.npmjs.org/findit/-/findit-0.1.0.tgz" }, "scripts": {}, "directories": {} }, "0.1.1": { "name": "findit", "version": "0.1.1", "description": "Walk a directory tree.", "main": "./index.js", "dependencies": { "seq": ">=0.1.7" }, "devDependencies": { "hashish": ">=0.0.2 <0.1", "expresso": "0.7.x" }, "repository": { "type": "git", "url": "git://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "_id": "findit@0.1.1", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.10", "_nodeVersion": "v0.5.0-pre", "_defaultsLoaded": true, "dist": { "shasum": "b14f8289de2e3f0571ba9a73033a046b462dd81b", "tarball": "https://registry.npmjs.org/findit/-/findit-0.1.1.tgz" }, "scripts": {}, "directories": {} }, "0.1.2": { "name": "findit", "version": "0.1.2", "description": "Walk a directory tree.", "main": "./index.js", "dependencies": { "seq": ">=0.1.7" }, "devDependencies": { "hashish": ">=0.0.2 <0.1", "expresso": "0.7.x" }, "scripts": { "test": "expresso" }, "repository": { "type": "git", "url": "git://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT/X11", "engine": [ "node >=0.2.0" ], "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "_id": "findit@0.1.2", "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.0.106", "_nodeVersion": "v0.4.12", "_defaultsLoaded": true, "dist": { "shasum": "ac7fe600cd6a32a35672836b74cf6f1dde2e11f8", "tarball": "https://registry.npmjs.org/findit/-/findit-0.1.2.tgz" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "directories": {} }, "1.0.0": { "name": "findit", "version": "1.0.0", "description": "walk a directory tree recursively with events", "main": "index.js", "devDependencies": { "tap": "~0.4.4" }, "scripts": { "test": "tap test/*.js" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree", "traversal" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT", "bugs": { "url": "https://github.com/substack/node-findit/issues" }, "_id": "findit@1.0.0", "dist": { "shasum": "8c154a6696d94bb787453cc1164c3331380cd4fa", "tarball": "https://registry.npmjs.org/findit/-/findit-1.0.0.tgz" }, "_from": ".", "_npmVersion": "1.3.7", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "directories": {} }, "1.0.1": { "name": "findit", "version": "1.0.1", "description": "walk a directory tree recursively with events", "main": "index.js", "devDependencies": { "tap": "~0.4.4" }, "scripts": { "test": "tap test/*.js" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree", "traversal" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT", "bugs": { "url": "https://github.com/substack/node-findit/issues" }, "_id": "findit@1.0.1", "dist": { "shasum": "eee92be002a98b89955a1da38ddf2f60171b2e63", "tarball": "https://registry.npmjs.org/findit/-/findit-1.0.1.tgz" }, "_from": ".", "_npmVersion": "1.3.7", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "directories": {} }, "1.1.0": { "name": "findit", "version": "1.1.0", "description": "walk a directory tree recursively with events", "main": "index.js", "devDependencies": { "tap": "~0.4.4" }, "scripts": { "test": "tap test/*.js" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree", "traversal" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT", "bugs": { "url": "https://github.com/substack/node-findit/issues" }, "_id": "findit@1.1.0", "dist": { "shasum": "7104c60060f838d2298bd526b16add6ce733f9ac", "tarball": "https://registry.npmjs.org/findit/-/findit-1.1.0.tgz" }, "_from": ".", "_npmVersion": "1.3.7", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "directories": {} }, "1.1.1": { "name": "findit", "version": "1.1.1", "description": "walk a directory tree recursively with events", "main": "index.js", "devDependencies": { "tap": "~0.4.4", "mkdirp": "~0.3.5" }, "scripts": { "test": "tap test/*.js" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree", "traversal" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT", "bugs": { "url": "https://github.com/substack/node-findit/issues" }, "homepage": "https://github.com/substack/node-findit", "_id": "findit@1.1.1", "dist": { "shasum": "b460e2f7633d78ed2c217c77c4209ecacaf8262a", "tarball": "https://registry.npmjs.org/findit/-/findit-1.1.1.tgz" }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "directories": {} }, "1.2.0": { "name": "findit", "version": "1.2.0", "description": "walk a directory tree recursively with events", "main": "index.js", "devDependencies": { "tap": "~0.4.4", "mkdirp": "~0.3.5" }, "scripts": { "test": "tap test/*.js" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree", "traversal" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT", "bugs": { "url": "https://github.com/substack/node-findit/issues" }, "homepage": "https://github.com/substack/node-findit", "_id": "findit@1.2.0", "dist": { "shasum": "f571a3a840749ae8b0cbf4bf43ced7659eec3ce8", "tarball": "https://registry.npmjs.org/findit/-/findit-1.2.0.tgz" }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "directories": {} }, "2.0.0": { "name": "findit", "version": "2.0.0", "description": "walk a directory tree recursively with events", "main": "index.js", "devDependencies": { "tap": "~0.4.4", "mkdirp": "~0.3.5" }, "scripts": { "test": "tap test/*.js" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "keywords": [ "find", "walk", "directory", "recursive", "tree", "traversal" ], "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "license": "MIT", "gitHead": "06ddeca91b618957ff5089efb5268c8b57d127c0", "bugs": { "url": "https://github.com/substack/node-findit/issues" }, "homepage": "https://github.com/substack/node-findit", "_id": "findit@2.0.0", "_shasum": "6509f0126af4c178551cfa99394e032e13a4d56e", "_from": ".", "_npmVersion": "1.4.15", "_npmUser": { "name": "substack", "email": "mail@substack.net" }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "dist": { "shasum": "6509f0126af4c178551cfa99394e032e13a4d56e", "tarball": "https://registry.npmjs.org/findit/-/findit-2.0.0.tgz" }, "directories": {} } }, "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "time": { "modified": "2017-12-31T07:27:06.039Z", "created": "2011-02-02T11:57:43.745Z", "0.0.1": "2011-02-02T11:57:44.134Z", "0.0.2": "2011-02-02T12:12:50.983Z", "0.0.3": "2011-02-26T13:07:54.400Z", "0.0.4": "2011-05-28T01:29:23.365Z", "0.0.5": "2011-06-17T19:00:57.056Z", "0.1.0": "2011-06-17T21:52:44.172Z", "0.1.1": "2011-07-09T09:22:19.553Z", "0.1.2": "2011-12-05T20:15:37.960Z", "1.0.0": "2013-09-14T22:23:49.700Z", "1.0.1": "2013-09-14T22:30:25.616Z", "1.1.0": "2013-09-14T22:39:06.396Z", "1.1.1": "2014-02-26T09:16:38.791Z", "1.2.0": "2014-05-06T00:57:07.294Z", "2.0.0": "2014-07-01T06:14:40.882Z" }, "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "repository": { "type": "git", "url": "http://github.com/substack/node-findit.git" }, "users": { "306766053": true, "fgribreau": true, "pid": true, "kastor": true, "pana": true, "stdarg": true, "hustler": true, "mk": true, "stringparser": true, "jmshahen": true, "itonyyo": true, "sietedosfede": true, "chocolateboy": true, "shipengyan": true, "f124275809": true, "kontrax": true, "markthethomas": true, "pruettti": true, "arkanciscan": true, "scottfreecode": true, "imaginegenesis": true }, "readme": "# findit\n\nRecursively walk directory trees. Think `/usr/bin/find`.\n\n[![build status](https://secure.travis-ci.org/substack/node-findit.png)](http://travis-ci.org/substack/node-findit)\n\n# example\n\n``` js\nvar finder = require('findit')(process.argv[2] || '.');\nvar path = require('path');\n\nfinder.on('directory', function (dir, stat, stop) {\n var base = path.basename(dir);\n if (base === '.git' || base === 'node_modules') stop()\n else console.log(dir + '/')\n});\n\nfinder.on('file', function (file, stat) {\n console.log(file);\n});\n\nfinder.on('link', function (link, stat) {\n console.log(link);\n});\n```\n\n# methods\n\n``` js\nvar find = require('findit')\n```\n\n## var finder = find(basedir, opts)\n\nReturn an event emitter `finder` that performs a recursive walk starting at\n`basedir`.\n\nIf you set `opts.followSymlinks`, symlinks will be followed. Otherwise, a\n`'link'` event will fire but symlinked directories will not be walked.\n\nIf `basedir` is actually a non-directory regular file, findit emits a single\n\"file\" event for it then emits \"end\".\n\nYou can optionally specify a custom\n[fs](http://nodejs.org/docs/latest/api/fs.html)\nimplementation with `opts.fs`. `opts.fs` should implement:\n\n* `opts.fs.readdir(dir, cb)`\n* `opts.fs.lstat(dir, cb)`\n* `opts.fs.readlink(dir, cb)` - optional if your stat objects from\n`opts.fs.lstat` never return true for `stat.isSymbolicLink()`\n\n## finder.stop()\n\nStop the traversal. A `\"stop\"` event will fire and then no more events will\nfire.\n\n# events\n\n## finder.on('path', function (file, stat) {})\n\nFor each file, directory, and symlink `file`, this event fires.\n\n## finder.on('file', function (file, stat) {})\n\nFor each file, this event fires.\n\n## finder.on('directory', function (dir, stat, stop) {})\n\nFor each directory, this event fires with the path `dir`.\n\nYour callback may call `stop()` on the first tick to tell findit to stop walking\nthe current directory.\n\n## finder.on('link', function (file, stat) {})\n\nFor each symlink, this event fires.\n\n## finder.on('readlink', function (src, dst) {})\n\nEvery time a symlink is read when `opts.followSymlinks` is on, this event fires.\n\n## finder.on('end', function () {})\n\nWhen the recursive walk is complete unless `finder.stop()` was called, this\nevent fires.\n\n## finder.on('stop', function () {})\n\nWhen `finder.stop()` is called, this event fires.\n\n## finder.on('error', function (err) {})\n\nWhenever there is an error, this event fires. You can choose to ignore errors or\nstop the traversal using `finder.stop()`.\n\nYou can always get the source of the error by checking `err.path`.\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install findit\n```\n\n# license\n\nMIT\n", "homepage": "https://github.com/substack/node-findit", "keywords": [ "find", "walk", "directory", "recursive", "tree", "traversal" ], "bugs": { "url": "https://github.com/substack/node-findit/issues" }, "license": "MIT", "readmeFilename": "readme.markdown", "_attachments": {} }