{"_id":"required","_rev":"84613","name":"required","description":"traverse your script and identify dependencies from requires","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"time":{"modified":"2021-06-03T10:27:20.000Z","created":"2012-09-29T09:43:36.847Z","1.0.0":"2014-04-27T17:34:41.077Z","0.4.0":"2014-03-11T13:43:27.301Z","0.3.2":"2013-10-03T18:48:16.411Z","0.3.1":"2013-02-24T16:31:18.811Z","0.3.0":"2013-02-23T04:49:34.600Z","0.2.0":"2013-02-18T04:23:59.085Z","0.1.0":"2013-02-11T16:00:25.814Z","0.0.8":"2012-11-26T00:18:50.357Z","0.0.7":"2012-11-25T19:30:05.078Z","0.0.6":"2012-11-24T16:05:06.975Z","0.0.5":"2012-10-31T14:59:48.371Z","0.0.4":"2012-10-29T17:22:11.001Z","0.0.3":"2012-10-01T16:13:03.405Z","0.0.2":"2012-10-01T09:49:48.334Z","0.0.1":"2012-09-30T16:21:36.895Z","0.0.0":"2012-09-29T09:43:36.847Z"},"users":{"wenbing":true},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"versions":{"1.0.0":{"name":"required","version":"1.0.0","description":"traverse your script and identify dependencies from requires","main":"index.js","bin":{"required":"./bin/required"},"scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"3.1.0"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/shtylman/node-required/issues"},"homepage":"https://github.com/shtylman/node-required","_id":"required@1.0.0","dist":{"shasum":"a43bb3ab141a04e5e544c9ee4ae8a7b78ae7d2fd","size":5031,"noattachment":false,"key":"/required/-/required-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1398620081077,"_cnpm_publish_time":1398620081077,"_hasShrinkwrap":false},"0.4.0":{"name":"required","version":"0.4.0","description":"traverse your script and identify dependencies from requires","main":"index.js","bin":{"required":"./bin/required"},"scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"2.2.0"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/shtylman/node-required/issues"},"homepage":"https://github.com/shtylman/node-required","_id":"required@0.4.0","dist":{"shasum":"78fd2843ed5ddf4cc7d20891902de4f58405e856","size":5030,"noattachment":false,"key":"/required/-/required-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.4.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1394545407301,"_hasShrinkwrap":false,"_cnpm_publish_time":1394545407301},"0.3.2":{"name":"required","version":"0.3.2","description":"traverse your script and identify dependencies from requires","main":"index.js","bin":{"required":"./bin/required"},"scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"2.2.0"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/shtylman/node-required/issues"},"_id":"required@0.3.2","dist":{"shasum":"b9d941c56e313879814d110e9c62aa7f58a85599","size":4937,"noattachment":false,"key":"/required/-/required-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.3.2.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1380826096411,"_hasShrinkwrap":false,"_cnpm_publish_time":1380826096411},"0.3.1":{"name":"required","version":"0.3.1","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"git://github.com/shtylman/node-detective.git#06d5cb"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.3.1","dist":{"shasum":"2e2a27da9bcee66ee85b25f6417cf8dce5ad01bb","size":4938,"noattachment":false,"key":"/required/-/required-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.3.1.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1361723478811,"_hasShrinkwrap":false,"_cnpm_publish_time":1361723478811},"0.3.0":{"name":"required","version":"0.3.0","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"git://github.com/shtylman/node-detective.git#06d5cb"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.3.0","dist":{"shasum":"df836f8b4ebab3ce6bcea1439917e2d6b6b1e3f4","size":4400,"noattachment":false,"key":"/required/-/required-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.3.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1361594974600,"_hasShrinkwrap":false,"_cnpm_publish_time":1361594974600},"0.2.0":{"name":"required","version":"0.2.0","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"git://github.com/shtylman/node-detective.git#06d5cb"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.2.0","dist":{"shasum":"8aa72913c3258151c7a6928f3216bea321c8f082","size":4201,"noattachment":false,"key":"/required/-/required-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.2.0.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1361161439085,"_hasShrinkwrap":false,"_cnpm_publish_time":1361161439085},"0.1.0":{"name":"required","version":"0.1.0","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"git://github.com/shtylman/node-detective.git#06d5cb"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.1.0","dist":{"shasum":"33b18a9cb7bf05ff36ff16b40ceb08fe18827db9","size":4472,"noattachment":false,"key":"/required/-/required-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1360598425814,"_hasShrinkwrap":false,"_cnpm_publish_time":1360598425814},"0.0.8":{"name":"required","version":"0.0.8","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"git://github.com/shtylman/node-detective.git#06d5cb"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.8","dist":{"shasum":"1ac65062d40b64b222491947eb14b763083a0926","size":4335,"noattachment":false,"key":"/required/-/required-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.8.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1353889130357,"_hasShrinkwrap":false,"_cnpm_publish_time":1353889130357},"0.0.7":{"name":"required","version":"0.0.7","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"git://github.com/shtylman/node-detective.git#06d5cb"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.7","dist":{"shasum":"ddab031961211f6343c9c6b896cd04521d708a1b","size":4253,"noattachment":false,"key":"/required/-/required-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.7.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1353871805078,"_hasShrinkwrap":false,"_cnpm_publish_time":1353871805078},"0.0.6":{"name":"required","version":"0.0.6","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"0.2.1"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.6","dist":{"shasum":"cda27251e022506d2d6e5650485318c283cdb54d","size":4039,"noattachment":false,"key":"/required/-/required-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.6.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1353773106975,"_hasShrinkwrap":false,"_cnpm_publish_time":1353773106975},"0.0.5":{"name":"required","version":"0.0.5","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"0.2.1"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.5","dist":{"shasum":"5da290ad8c83de2d41907e5e5a4e9dff9fe6464e","size":4036,"noattachment":false,"key":"/required/-/required-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.5.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1351695588371,"_hasShrinkwrap":false,"_cnpm_publish_time":1351695588371},"0.0.4":{"name":"required","version":"0.0.4","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"0.2.1"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.4","dist":{"shasum":"8051f57d237e8e720b1a06b7aab109f8ef95c8c0","size":3811,"noattachment":false,"key":"/required/-/required-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.4.tgz"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1351531331001,"_hasShrinkwrap":false,"_cnpm_publish_time":1351531331001},"0.0.3":{"name":"required","version":"0.0.3","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"0.2.1"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.3","dist":{"shasum":"ddf16bafc9d7f731b759791a227b9f7af8253653","size":3738,"noattachment":false,"key":"/required/-/required-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.3.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1349107983405,"_hasShrinkwrap":false,"_cnpm_publish_time":1349107983405},"0.0.2":{"name":"required","version":"0.0.2","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha","test-generate":"GENERATE=true npm test","coverage":"NODE_ENV=test cover run ./node_modules/mocha/bin/_mocha && cover report html"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"0.2.1"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.2","dist":{"shasum":"e6892f24546d0631c37ecc5f12f6b002ed1fb929","size":3615,"noattachment":false,"key":"/required/-/required-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.2.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1349084988334,"_hasShrinkwrap":false,"_cnpm_publish_time":1349084988334},"0.0.1":{"name":"required","version":"0.0.1","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"0.1.1"},"devDependencies":{"mocha":"~1.5.0","cycle":"1.0.0"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.1","dist":{"shasum":"41e581e2a04397e778d42cf135ff8d55334d791b","size":3434,"noattachment":false,"key":"/required/-/required-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.1.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1349022096895,"_hasShrinkwrap":false,"_cnpm_publish_time":1349022096895},"0.0.0":{"name":"required","version":"0.0.0","description":"traverse your script and identify dependencies from requires","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/shtylman/node-required.git"},"keywords":["require","modules"],"dependencies":{"detective":"0.1.1"},"author":{"name":"Roman Shtylman","email":"shtylman@gmail.com"},"license":"MIT","_id":"required@0.0.0","dist":{"shasum":"31904976c6c49eeacab317a5ab937eaf4620b71c","size":2070,"noattachment":false,"key":"/required/-/required-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/required/download/required-0.0.0.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"shtylman","email":"shtylman@gmail.com"},"maintainers":[{"name":"shtylman","email":"shtylman@gmail.com"}],"directories":{},"publish_time":1348911816847,"_hasShrinkwrap":false,"_cnpm_publish_time":1348911816847}},"readme":"# required [![Build Status](https://secure.travis-ci.org/defunctzombie/node-required.png)](http://travis-ci.org/defunctzombie/node-required)\n\nIdentifies which modules and files your script is using.\n\n## example\n\n```javascript\nvar required = require('required');\n\nrequired('/path/to/entry/source/file/js', function(err, deps) {\n    // deps is an array of dependency objects\n    // see the api section below for a description of the object\n});\n```\n\n## api\n\n### required(filename, [opt], cb)\n\nReads the filename and traverses all the dependencies.\n\nThe return result to callback is (err, details) where details is an array of dependencies for the file.\n\nEach object in the array takes the following form:\n\n```javascript\n{\n    // the local name of the require\n    // i.e. the string in your \"require\" statement\n    id: 'local-require-name',\n\n    // true if core module (i.e. events, cryto, etc)\n    // core modules will not have any deps\n    core: true | false\n\n    // full path to the entry file for the module\n    // this does not exist for builtin modules\n    filename: '/path/to/require/from/project/file.js',\n\n    // an array of the dependencies for the file\n    // each object is of the same form as described above\n    deps: [\n        ...\n    ]\n},\n```\n\n*opt* is an optional options object with the following defaults\n```\n{\n    // if true, then missing modules will be silently ignored.\n    // useful if you don't care about some failed requires with native builds.\n    // if you pass a function instead of true, the function will be invoked\n    // with this signature: `yourFn(missingModuleName, parentSourceFilePath)`,\n    // e.g. `ignoreMissing: function(name, parent) { /* ... */ }`\n    ignoreMissing: false,\n\n    // if true, include the source contents for each file in the results\n    // in a \"source\" field\n    includeSource: false,\n\n    // optional function for required to use when resolving an id\n    // function(id, parent, cb);\n    // id is the string for the call to require\n    // parent is an object describing the calling file { filename: String, paths: [] }\n    // callback (err, '/path/to/resolved/file.js' [, ignore])\n    // if ignore is true, required will not try to process the resulting path for deps\n    resolve: null,\n\n    // optional replacement for builtin detection of requires\n    // called with the file source\n    detective: null,\n}\n```\n\n## install\n\n```shell\nnpm install required\n```\n\n## tests\n\nRun tests with ```npm test```\n\nRebuild the golden files with ```npm run-script test-generate```\n\nGenerate a coverage report (requires cover module) ```npm run-script coverage```\n\n","_attachments":{},"homepage":"https://github.com/shtylman/node-required","bugs":{"url":"https://github.com/shtylman/node-required/issues"},"license":"MIT"}