{"name":"drive-by-path","version":"0.0.1","description":"Returns the drive to which a path belongs","main":"index.js","typings":"index.d.ts","files":["index.js","index.d.ts"],"scripts":{"test":"standard && node test"},"repository":{"type":"git","url":"git+https://github.com/zkochan/drive-by-path.git"},"keywords":["drive","disk","path","fs"],"author":{"name":"Zoltan Kochan","email":"zoltankochan@gmail.com","url":"https://www.kochan.io"},"engines":{"node":">=4"},"license":"MIT","bugs":{"url":"https://github.com/zkochan/drive-by-path/issues"},"homepage":"https://github.com/zkochan/drive-by-path#readme","dependencies":{"drivelist":"github:zkochan/drivelist","is-subdir":"^1.0.1","once":"^1.4.0","ramda":"^0.24.1","util.promisify":"^1.0.0"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"gitHead":"24f227df3cabfbfa87729eebc5b60006a36c0fb4","_id":"drive-by-path@0.0.1","_npmVersion":"5.4.2","_nodeVersion":"6.4.0","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"integrity":"sha512-n8w8fi6tLcsitmdp7jwMmFw3a+A/QdlyghCAmMXBL+xxIkcTTZ5uJvyLOhz+sJraAhsnK7Zy7Fl7Y+UzUTx73Q==","shasum":"fa79fb56a78d4aff0eb0471716eeb91d686d1eca","tarball":"http://registry-npm.ywwl.com/drive-by-path/download/drive-by-path-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyZl9OowPqlu8An4SsuBH5c6jpUqbLSdrNS5T3K02XoAiEAvUz2wkkQMkPSBZ/5O8++ata4N6rQnBF+v9LWp7xpfV4="}],"size":2243,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.0.1.tgz_1506774857023_0.09194669383578002"},"directories":{},"readme":"# drive-by-path\n\n[![Status](https://travis-ci.org/zkochan/drive-by-path.svg?branch=master)](https://travis-ci.org/zkochan/drive-by-path \"See test builds\")\n[![Build status](https://ci.appveyor.com/api/projects/status/p6gfn1w3fc8e94v1?svg=true)](https://ci.appveyor.com/project/zkochan/drive-by-path)\n\n> Returns the drive to which a path belongs\n\n## Install\n\nInstall it via npm.\n\n```\nnpm install drive-by-path\n```\n\n## Usage\n\n```js\nconst driveByPath = require('drive-by-path')\n\ndriveByPath('/zkochan/foo')\n  .then(drive => console.log(drive))\n//> {\n//    matchedMountpointPath: '/'\n//    device: '/dev/disk0',\n//    displayName: '/dev/disk0',\n//    ...\n//  }\n```\n\n## API\n\n### `driveByPath(path): Promise<DriveInfo>`\n\nReturns info abouth the drive under which the path is located.\nAlso returns what mountpoint was matched via `matchedMountpointPath`:\none drive can have multiple mountpoints.\n\n**Arguments:**\n\n* `path` - *string* - the filepath for which the drive is searched\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1506774857955,"_cnpm_publish_time":1506774857955,"dist-tags":{"latest":"1.0.0","next":"0.1.2"}}