{"name":"drive-by-path","version":"0.0.2","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":{"is-subdir":"^1.0.1","once":"^1.4.0","ramda":"^0.24.1","util.promisify":"^1.0.0","zkochan-drivelist":"^0.0.0"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"gitHead":"e60a76a5d4ee546eed30da1f36a71a7c7a377d0b","_id":"drive-by-path@0.0.2","_npmVersion":"5.4.2","_nodeVersion":"6.4.0","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"integrity":"sha512-T997+lEcBDz/jp6oGu9MX4V6wgIc/y5nxxj0ou+wnby65YKYSSRxBU64Eba0K+8870E1JeHbnTwlpxsGLA9nwQ==","shasum":"35a1da0381b174f2d5ef13a5fbcabb016385281d","tarball":"http://registry-npm.ywwl.com/drive-by-path/download/drive-by-path-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFE+bO9MPLtP63jxIS7oKpoI7z4ppOWn/KZGnqwa93KgIgM3k8cRIbM0zhSnojjCUkboYk4YOxkn1vUHFzY1gMFEc="}],"size":2323,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.0.2.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.0.2.tgz_1506776919422_0.05257542594335973"},"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":1506776920475,"_cnpm_publish_time":1506776920475,"dist-tags":{"latest":"1.0.0","next":"0.1.2"}}