{
  "_args": [
    [
      {
        "raw": "require-dir@^0.3.0",
        "scope": null,
        "escapedName": "require-dir",
        "name": "require-dir",
        "rawSpec": "^0.3.0",
        "spec": ">=0.3.0 <0.4.0",
        "type": "range"
      },
      "/build/npm-check-updates/src/npm-check-updates-2.11.0.tgz"
    ]
  ],
  "_from": "require-dir@>=0.3.0 <0.4.0",
  "_id": "require-dir@0.3.1",
  "_inCache": true,
  "_location": "/npm-check-updates/require-dir",
  "_nodeVersion": "6.3.0",
  "_npmOperationalInternal": {
    "host": "packages-16-east.internal.npmjs.com",
    "tmp": "tmp/require-dir-0.3.1.tgz_1475787176301_0.997160080820322"
  },
  "_npmUser": {
    "name": "aseemk",
    "email": "aseem.kishore@gmail.com"
  },
  "_npmVersion": "3.10.3",
  "_phantomChildren": {},
  "_requested": {
    "raw": "require-dir@^0.3.0",
    "scope": null,
    "escapedName": "require-dir",
    "name": "require-dir",
    "rawSpec": "^0.3.0",
    "spec": ">=0.3.0 <0.4.0",
    "type": "range"
  },
  "_requiredBy": [
    "/npm-check-updates"
  ],
  "_resolved": "https://registry.npmjs.org/require-dir/-/require-dir-0.3.1.tgz",
  "_shasum": "b5a8e28bae0343bb0d0cc38ab1f531e1931b264a",
  "_shrinkwrap": null,
  "_spec": "require-dir@^0.3.0",
  "_where": "/build/npm-check-updates/src/npm-check-updates-2.11.0.tgz",
  "author": {
    "name": "Aseem Kishore",
    "email": "aseem.kishore@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/aseemk/requireDir/issues"
  },
  "dependencies": {},
  "description": "Helper to require() directories.",
  "devDependencies": {
    "coffee-script": "~1.3.3",
    "mkdirp": "^0.5.0",
    "ts-node": "^1.3.0",
    "typescript": "^1.8.0"
  },
  "directories": {},
  "dist": {
    "shasum": "b5a8e28bae0343bb0d0cc38ab1f531e1931b264a",
    "tarball": "https://registry.npmjs.org/require-dir/-/require-dir-0.3.1.tgz"
  },
  "engines": {
    "node": "*"
  },
  "gitHead": "96940cfd3ed6c4cbbda18da5fd74bf87876fb1be",
  "homepage": "https://github.com/aseemk/requireDir",
  "license": "MIT",
  "maintainers": [
    {
      "name": "aseemk",
      "email": "aseem.kishore@gmail.com"
    }
  ],
  "name": "require-dir",
  "optionalDependencies": {},
  "readme": "[![Build Status](https://travis-ci.org/aseemk/requireDir.svg?branch=master)](https://travis-ci.org/aseemk/requireDir)\n[![npm version](https://badge.fury.io/js/require-dir.svg)](http://badge.fury.io/js/require-dir)\n\n# requireDir()\n\nNode helper to `require()` directories. The directory's files are examined,\nand each one that can be `require()`'d is `require()`'d and returned as part\nof a hash from that file's basename to its exported contents.\n\n## Example\n\nGiven this directory structure:\n\n```\ndir\n+ a.js\n+ b.json\n+ c.coffee\n+ d.txt\n```\n\n`requireDir('./dir')` will return the equivalent of:\n\n```js\n{ a: require('./dir/a.js')\n, b: require('./dir/b.json')\n}\n```\n\nAnd if CoffeeScript has been registered via `require('coffee-script/register')`,\n`c.coffee` will also be returned.\n\n## Installation\n\n```\nnpm install require-dir\n```\n\nNote that this package is *not* `requireDir` — turns out that's already\n[taken](https://github.com/JamesEggers1/node-requiredir)! ;)\n\n## Usage\n\nBasic usage that examines only directories' immediate files:\n\n```js\nvar requireDir = require('require-dir');\nvar dir = requireDir('./path/to/dir');\n```\n\nYou can optionally customize the behavior by passing an extra options object:\n\n```js\nvar dir = requireDir('./path/to/dir', {recurse: true});\n```\n\n## Options\n\n`recurse`: Whether to recursively `require()` subdirectories too.\n(`node_modules` within subdirectories will be ignored.)\nDefault is false.\n\n`camelcase`: Automatically add camelcase aliases for files with dash- and\nunderscore-separated names. E.g. `foo-bar.js` will be exposed under both the\noriginal `'foo-bar'` name as well as a `'fooBar'` alias. Default is false.\n\n`duplicates`: By default, if multiple files share the same basename, only the\nhighest priority one is `require()`'d and returned. (Priority is determined by\nthe order of `require.extensions` keys, with directories taking precedence\nover files if `recurse` is true.) Specifying this option `require()`'s all\nfiles and returns full filename keys in addition to basename keys.\nDefault is false.\n\nE.g. in the example above, if there were also an `a.json`, the behavior would\nbe the same by default, but specifying `duplicates: true` would yield:\n\n```js\n{ a: require('./dir/a.js')\n, 'a.js': require('./dir/a.js')\n, 'a.json': require('./dir/a.json')\n, b: require('./dir/b.json')\n, 'b.json': require('./dir/b.json')\n}\n```\n\nThere might be more options in the future. ;)\n\n## Tips\n\nIf you want to `require()` the same directory in multiple places, you can do\nthis in the directory itself! Just make an `index.js` file with the following:\n\n```js\nmodule.exports = require('require-dir')();   // defaults to '.'\n```\n\nAnd don't worry, the calling file is always ignored to prevent infinite loops.\n\n## TODO\n\nIt'd be awesome if this could work with the regular `require()`, e.g. like a\nregular `require()` hook. Not sure that's possible though; directories are\nalready special-cased to look for an `index` file or `package.json`.\n\nAn `ignore` option would be nice: a string or regex, or an array of either or\nboth, of paths, relative to the directory, to ignore. String paths can be\nextensionless to ignore all extensions for that path. Supporting shell-style\nglobs in string paths would be nice.\n\nCurrently, basenames are derived for directories too — e.g. a directory named\n`a.txt` will be returned as `a` when recursing — but should that be the case?\nMaybe directories should always be returned by their full name, and/or maybe\nthis behavior should be customizable. This is hopefully an edge case.\n\n## License\n\nMIT. &copy; 2012-2015 Aseem Kishore.\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git://github.com/aseemk/requireDir.git"
  },
  "scripts": {
    "test": "node test"
  },
  "version": "0.3.1"
}
