{"name":"parents","version":"1.0.1","description":"return all the parent directories for a directory","main":"index.js","bin":{},"directories":{"example":"example","test":"test"},"dependencies":{"path-platform":"~0.11.15"},"devDependencies":{"tap":"~0.2.5"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/substack/node-parents.git"},"homepage":"https://github.com/substack/node-parents","keywords":["directory","parent","path","tree"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","engine":{"node":">=0.6"},"gitHead":"1a90e0b70695f08e3eab32be2f1a867b4bbe6880","bugs":{"url":"https://github.com/substack/node-parents/issues"},"_id":"parents@1.0.1","_shasum":"fedd4d2bf193a77745fe71e371d73c3307d9c751","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"dist":{"shasum":"fedd4d2bf193a77745fe71e371d73c3307d9c751","tarball":"http://registry-npm.ywwl.com/parents/download/parents-1.0.1.tgz","integrity":"sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBu0SB5Slcpa2GhTs+5FatJaVfitLTPIc9pA6LjciLl+AiBNbP0piaHH5BDIfmjuTa1mZkq6ZvXKN/vdTxXZcPNJ1g=="}],"size":2734,"noattachment":false,"key":"/parents/-/parents-1.0.1.tgz"},"readme":"# parents\n\nReturn all the parent directories of a directory, inclusive of that directory.\n\n[![build status](https://secure.travis-ci.org/substack/node-parents.png)](http://travis-ci.org/substack/node-parents)\n\n# example\n\n## dirname\n\n``` js\nvar parents = require('parents');\nvar dirs = parents(__dirname);\nconsole.dir(dirs);\n```\n\n***\n\n```\n[ '/home/substack/projects/node-parents/example',\n  '/home/substack/projects/node-parents',\n  '/home/substack/projects',\n  '/home/substack',\n  '/home',\n  '/' ]\n```\n\n## win32\n\n``` js\nvar parents = require('parents');\nvar dir = 'C:\\\\Program Files\\\\Maxis\\\\Sim City 2000\\\\cities';\n\nvar dirs = parents(dir, { platform : 'win32' });\nconsole.dir(dirs);\n```\n\n***\n\n```\n[ 'C:\\\\Program Files\\\\Maxis\\\\Sim City 2000\\\\cities',\n  'C:\\\\Program Files\\\\Maxis\\\\Sim City 2000',\n  'C:\\\\Program Files\\\\Maxis',\n  'C:\\\\Program Files',\n  'C:' ]\n```\n\n# methods\n\n``` js\nvar parents = require('parents')\n```\n\n## parents(dir, opts)\n\nReturn an array of the parent directories of `dir`, including and starting with\n`dir`. If a `dir` isn't specified, `process.cwd()` will be used.\n\nOptionally specify an `opts.platform` to control whether the separator and paths\nworks the unixy way with `'/'` or the windowsy way where sometimes things use\n`'/'` and sometimes they use `'\\\\'` and also there are leading drive letters and\nother exotic features. If `opts.platform` isn't specified, `process.platform`\nwill be used. Anything that matches `/^win/` will use the windowsy behavior.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install parents\n```\n\n# licence\n\nMIT\n","publish_time":1421261295626,"_cnpm_publish_time":1421261295626,"dist-tags":{"latest":"1.0.1"}}