{"_id":"require-graph","_rev":"28-3e4854c6611e9bc451d0d1d4c58b71c5","name":"require-graph","description":"Builds dependency chains for client-side assets","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"require-graph","version":"0.1.0","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Clipboard, Inc."},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/clipboard/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.1.22","wrench":"1.4.4"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"_id":"require-graph@0.1.0","dist":{"shasum":"2747fe9e778bbe8284574b617d0810fd95ffbd6f","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-0.1.0.tgz","integrity":"sha512-6LYnzM/u/ZeRbMEiBln6U/B53b/F4XiGwhdUwhL9wRaW5IVNiyODPlQEIsqXCWAScBSCtmkDAl/G1Fh9spnaBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4qD2Pap2Y2UVnElCzm7aXeIhv6JNi52uGWwUtBnU9lAiAnriVC8Mw+QyL2XFRGHnW/JEwHeJE+lipnJrsKHdN4mQ=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"0.1.1":{"name":"require-graph","version":"0.1.1","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Clipboard, Inc."},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/clipboard/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.1.22","wrench":"1.4.4"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"_id":"require-graph@0.1.1","dist":{"shasum":"c493638f65157d1db6995764f70351fb855dd23b","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-0.1.1.tgz","integrity":"sha512-oeWtsA7U2B+NhWafpR6NVfvZQz3dtFrxiyzpk9Qbr8ZgEtvhh63M3OgU3iQB0oUWskdPkPJPixy5Kh3NOAhtzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+kULAuBRplU4wCBWHXoVflsv1OEu/c4fpGPfabXrSdQIgN2RFnvBVwSsBD7tRRXei3ynEyw3Mx9MyyXSSwtTzceQ="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"0.1.2":{"name":"require-graph","version":"0.1.2","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Clipboard, Inc."},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/clipboard/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.1.22","wrench":"1.4.4"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"_id":"require-graph@0.1.2","dist":{"shasum":"e9eab1b643cb44ada330500a420777491f4bee8c","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-0.1.2.tgz","integrity":"sha512-GXeeXsWztE0f0adQtZpaRWr3RLehWawrC7r+sAsICyCM0RcLT13pYVDOxoVhc1iP1KQhMiFFzHfHxsMZBSLrdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFvosXl2cnllHLPYE9kLQybynoCvF+LpS3y5fYAyY92kAiAl1MNERugKqGhkafc8olJ7edr97ykWhaEbv+ET7Nx47g=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"0.1.3":{"name":"require-graph","version":"0.1.3","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Clipboard, Inc."},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/clipboard/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.1.22","wrench":"1.4.4"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"_id":"require-graph@0.1.3","dist":{"shasum":"4ec5c06290902c97c76fcea29324eb95fef288ff","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-0.1.3.tgz","integrity":"sha512-JbQtYaaWJ/LqaJzO+Clx7X6yJypBxlFeTeJUg2RR26XVkjwpD0gZIY5pU/QrR49Pf8tOFFe5dopIEJeIUBYVzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcc2rhnmq1Ehc16cLy7kCaUW/KNUd6GCORJcyiiV+r4AiAUh95+Ch9jSALQCaVju4YadnL5z2jthDEMjwtOiqx83Q=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"0.1.4":{"name":"require-graph","version":"0.1.4","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Clipboard, Inc."},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/clipboard/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.1.22","wrench":"1.4.4"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"_id":"require-graph@0.1.4","dist":{"shasum":"e7d879c7ea7eb0ee01218a8905fbdf95523de3d0","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-0.1.4.tgz","integrity":"sha512-kySiEYSfhjz4et2GKJ6UOpxyWYJBAtBvstXDSdWFOhit8+FReGVuSAYaiHXhU3NYtqq3gxDMMJ70N0R3epBy9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmabyLWx4IiQB+ragqAaLLVtN3kDwpTCprQ1GucTXl4wIgO5Un8gmytVl8lkLzXDmLFtIEsw/x03exbUXKgvHxtx4="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"0.1.5":{"name":"require-graph","version":"0.1.5","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Clipboard, Inc."},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/clipboard/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.1.22","wrench":"1.4.4"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"_id":"require-graph@0.1.5","dist":{"shasum":"580da4851a6145cbd5d052eb46bbfb57c3922411","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-0.1.5.tgz","integrity":"sha512-m7Ai/Vx3HtFgMpDvViZSRHvYHC8lOJHj4U3c0/tyg/H6kEKgfqEWoHUWTqU3ldifNLwX3SyxA7YwFv4nE5SpBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB9A4OWnnH4QO3Ti2WjtYC8yeTH8PGRvKn70yMDaNcS+AiBMEWojoKcPvUItzevwNb1C7tklFbMBuPhmoKGp8KClSA=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"0.2.0":{"name":"require-graph","version":"0.2.0","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Clipboard, Inc."},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/clipboard/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.2.5","wrench":"1.4.4"},"devDependencies":{"mocha":"1.8.1","should":"1.2.1"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"licenses":[{"type":"MIT","url":"https://github.com/clipboard/require-graph/blob/master/LICENSE"}],"_id":"require-graph@0.2.0","dist":{"shasum":"fe63dbf51e84e8e5dae730b2216218598ddd0931","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-0.2.0.tgz","integrity":"sha512-nIE21qjkD2P1Jv5Kp48hcFpJSxCUWMbJVxXn6kZPIun6fLxPj8kQbkf5sh1igGjKVImUMTjoibLbJqEUWEWPVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHqEmBGh30cc1IqnyBEJn/E9i34AyO9mQBdn3XcahyYXAiEApFO+gGP+yGX1Rf0YDjI7p+ksZSnhLa2SXnXT1nCCEis="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"tmont","email":"tmont@tmont.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"1.0.0":{"name":"require-graph","version":"1.0.0","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery"},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/tmont/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.2.9","wrench":"1.5.4"},"devDependencies":{"mocha":"1.14.0","should":"2.1.0"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"licenses":[{"type":"MIT","url":"https://github.com/tmont/require-graph/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/tmont/require-graph/issues"},"homepage":"https://github.com/tmont/require-graph","_id":"require-graph@1.0.0","dist":{"shasum":"2491e0a6c25ec26b8939882d735bb8b8c0f1161a","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-1.0.0.tgz","integrity":"sha512-QeliHCxGRboiZCGhBfT/jJk1aNZlDQddOCIMs4FWTMqRCjKiJ7d48PL+6FgGHv6qjYE7ZjsSadVr7MMExpGx+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfwP5TbyYC3080TzUwvYOWO4hbSNw2Q1r0JQ4AxMm5FAiEApwgFI+6sVFdWJ/ar/42FTc26nlhfQwmpOWLYDpNlLCE="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"1.0.1":{"name":"require-graph","version":"1.0.1","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery"},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/tmont/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.2.9","wrench":"1.5.4"},"devDependencies":{"mocha":"1.14.0","should":"2.1.0"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"licenses":[{"type":"MIT","url":"https://github.com/tmont/require-graph/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/tmont/require-graph/issues"},"homepage":"https://github.com/tmont/require-graph","_id":"require-graph@1.0.1","dist":{"shasum":"145baa72001c863bfadd8b4bdec49b573e099881","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-1.0.1.tgz","noattachment":true},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tmont@tmont.com"}]},"1.0.2":{"name":"require-graph","version":"1.0.2","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"directories":{"lib":"src"},"author":{"name":"Tommy Montgomery"},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/tmont/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.2.9","wrench":"1.5.4"},"devDependencies":{"mocha":"1.14.0","should":"2.1.0"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"licenses":[{"type":"MIT","url":"https://github.com/tmont/require-graph/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/tmont/require-graph/issues"},"homepage":"https://github.com/tmont/require-graph","_id":"require-graph@1.0.2","dist":{"shasum":"f4a28945835abc46feed21479fabc677414143df","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-1.0.2.tgz","integrity":"sha512-OSe7ujOWvCfzigGsTiIjpCnHw0YGn6bGb/IdGkc13XF0iKrAK4CpL0elcXgCDOMLLsqlyc9kFcPGgfHaymuNxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ+p7lFX3/ifxzteDk8i4jBL5DTyySYmp1jSIb/DbZFwIgHhxb9UkTQBSNQ9LIZqSBjKgfjVZlwhs1LZNH0xeUSSw="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}]},"1.1.0":{"name":"require-graph","version":"1.1.0","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"files":["index.js","LICENSE"],"author":{"name":"Tommy Montgomery"},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/tmont/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.2.9","wrench":"1.5.6"},"devDependencies":{"mocha":"1.17.1","should":"3.1.0"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"licenses":[{"type":"MIT","url":"https://github.com/tmont/require-graph/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/tmont/require-graph/issues"},"homepage":"https://github.com/tmont/require-graph","_id":"require-graph@1.1.0","dist":{"shasum":"ebdeda2a4da45d6829cfa6e6b712d35b0f1bd892","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-1.1.0.tgz","integrity":"sha512-EO+x76+IHHno7krt1KB74YhnU3T2XkubwZ6YgFzVx6GUELYQf3ypOnKUGelEwrpHdzY4eJBdGb+2ewIb/B0uYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDlNYPWkklfA5CIXKDAd3jYgGrITTisVefOOUXCjTsoIAiBhXsZbzRGeyBChzRbS3ujiEjP+m8XNIQ4V+BKWgR1jXQ=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}],"directories":{}},"1.1.1":{"name":"require-graph","version":"1.1.1","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"files":["index.js","LICENSE"],"author":{"name":"Tommy Montgomery"},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/tmont/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.2.9","wrench":"1.5.6"},"devDependencies":{"mocha":"1.17.1","should":"3.1.0"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"licenses":[{"type":"MIT","url":"https://github.com/tmont/require-graph/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/tmont/require-graph/issues"},"homepage":"https://github.com/tmont/require-graph","_id":"require-graph@1.1.1","dist":{"shasum":"0de2d87035d10d7b443766e091add25574707130","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-1.1.1.tgz","integrity":"sha512-FPFcqoQe+mCJZ506y2NzH9jnp80WikrlI2M8JmCOOwYm69fHtvsdrGwgjAkrVIzm1CG8PWEbngKhFOVtpOJkkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD28x1UgifzXr0ZqPe+6tazY4VxZuGZNVAUzsTEeE2BswIgUw6eGYKwboglnIKfNXMfBZVCf2QBuTJ/LkJM4zIaYL0="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}],"directories":{}},"2.0.0":{"name":"require-graph","version":"2.0.0","description":"Builds dependency chains for client-side assets","keywords":["dependency","graph"],"files":["index.js","LICENSE"],"author":{"name":"Tommy Montgomery"},"contributors":[{"name":"Ken Perkins"},{"name":"Tommy Montgomery"}],"repository":{"type":"git","url":"https://github.com/tmont/require-graph.git"},"dependencies":{"dep-graph":"1.1.0","async":"0.2.9","wrench":"1.5.6"},"devDependencies":{"mocha":"1.17.1","should":"3.1.0"},"scripts":{"test":"node_modules/.bin/mocha -R spec ./tests"},"licenses":[{"type":"MIT","url":"https://github.com/tmont/require-graph/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/tmont/require-graph/issues"},"homepage":"https://github.com/tmont/require-graph","_id":"require-graph@2.0.0","dist":{"shasum":"e2503e24cdbd67a55ef5cff972e787917559cb1a","tarball":"https://registry.npmjs.org/require-graph/-/require-graph-2.0.0.tgz","integrity":"sha512-nl6ro751FGIW/0TY434hGURTJpyTWry+N3vIOtppdo6M2DIvzkMn8kXXKGEOU/LVl9DLp+Z6olSCoLzeLRS9nQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlxwbNIf1vkmEIIV15dG5ftX7IgjsZxX8eSYDyKPgYYAiEAisorV8zp5agj2vvX22xH+6QEHMzdKxxdOJTbpuGEJGg="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"tmont","email":"tommy.mont@gmail.com"},"maintainers":[{"name":"tmont","email":"tommy.mont@gmail.com"}]}},"readme":"# require-graph\n\n[![Build Status](https://travis-ci.org/tmont/require-graph.png?branch=master)](https://travis-ci.org/tmont/require-graph)\n\nA tiny library for building/serving dependencies for client-side assets\n(JavaScript, HTML templates, etc.). Licensed under [MIT](./LICENSE).\n\n## Installation\n`npm install require-graph`\n\n## Examples\nSuppose you have some JavaScript files that depend on each other:\n\n- `a.js` depends on `b.js` and `c.js`\n- `b.js` depends on `c.js` and `d.js`\n- `c.js` depends on `d.js`\n\n`a.js`:\n```javascript\n/** @depends\n * b.js\n * c.js\n */\n\nmessages.push('I am file A!');\n\n```\n\n`b.js`:\n```javascript\n/** @depends\n * c.js\n * d.js\n */\n\nmessages.push('I am file B!');\n\n```\n\n`c.js`:\n```javascript\n/** @depends\n * d.js\n */\n\nmessages.push('I am file C!');\n\n```\n\n`d.js`:\n```javascript\nvar messages = [ 'I am file D!' ];\n\n```\n\nAfter defining all the dependencies, you can concatenate them at runtime\n(or build time, or whenever-you-want-time):\n\n```javascript\nvar GraphBuilder = require('require-graph'),\n  path = require('path'),\n  builder = new GraphBuilder(),\n  root = '/path/to/files';\n\nbuilder.buildGraph(path.join(root, 'a.js'), function(err, dependencies) {\n  if (err) {\n    console.log('oh god why', err);\n    return;\n  }\n\n  console.log(builder.getFiles(path.join(root, 'a.js'))); // [ 'd.js', 'c.js', 'b.js' ]\n  console.log(builder.getFiles(path.join(root, 'b.js'))); // [ 'd.js', 'c.js' ]\n  console.log(builder.getFiles(path.join(root, 'c.js'))); // [ 'd.js' ]\n  console.log(builder.getFiles(path.join(root, 'd.js'))); // []\n\n  console.log(builder.concatenate(path.join(root, 'a.js')));\n\n  // var messages = [ 'I am file D!' ];\n  // /** @depends\n  //  * d.js\n  //  */\n  //\n  // messages.push('I am file C!');\n  // /** @depends\n  //  * c.js\n  //  * d.js\n  //  */\n  //\n  // messages.push('I am file B!');\n  // /**\n  //  * b.js\n  //  * c.js\n  //  */\n  //\n  // messages.push('I am file A!');\n});\n```\n\n### Directories as dependencies\nYou can also specify a relative directory as a dependency, in which\ncase all files in that directory (recursively) will be set as\ndependencies. For example:\n\n```\n/** @depends\n * this/file.js\n * that/directory\n */\n```\n\n## `buildGraph()` Options\nRemove require-graph specific headers (the `/** @depends...*/` blocks):\n\n```javascript\nvar options = {\n  removeHeaders: true\n};\nbuild.buildGraph(options, callback);\n```\n\nDo something to the file's contents:\n\n```javascript\nvar options = {\n  transform: function(contents, filename) {\n    var stat = fs.statSync(filename);\n    return '// last modified on ' + stat.mtime + '\\n' + contents;\n  }\n};\nbuild.buildGraph(options, callback);\n```\n\nControl which files are parsed:\n\n```javascript\nvar options = {\n  shouldParse: function(filename) {\n    // only parse javascript files\n    return /\\.js$/.test(filename);\n  }\n};\nbuild.buildGraph(options, callback);\n```\n\n\n## Development\n```bash\ngit clone git@github.com:tmont/require-graph.git\ncd require-graph\nnpm install\nnpm test\n```","maintainers":[{"name":"tmont","email":"tmont@tmont.com"}],"time":{"modified":"2022-07-13T15:22:24.411Z","created":"2013-01-19T00:19:19.264Z","0.1.0":"2013-01-19T00:19:20.216Z","0.1.1":"2013-01-19T00:56:31.333Z","0.1.2":"2013-01-19T01:40:42.147Z","0.1.3":"2013-01-22T19:07:28.947Z","0.1.4":"2013-01-22T22:36:56.766Z","0.1.5":"2013-01-28T18:28:57.378Z","0.2.0":"2013-02-13T19:25:36.902Z","1.0.0":"2013-11-20T00:13:21.480Z","1.0.1":"2013-12-19T05:46:44.316Z","1.0.2":"2014-01-17T21:09:48.971Z","1.1.0":"2014-01-24T01:53:18.321Z","1.1.1":"2014-01-24T10:59:08.807Z","2.0.0":"2014-01-25T00:55:56.805Z"},"author":{"name":"Tommy Montgomery"},"repository":{"type":"git","url":"https://github.com/tmont/require-graph.git"},"readmeFilename":"README.md"}