{"_id":"drive-by-path","_rev":"942524","name":"drive-by-path","description":"Returns the drive to which a path belongs","dist-tags":{"latest":"1.0.0","next":"0.1.2"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2021-09-23T02:08:44.000Z","created":"2017-09-29T19:17:09.434Z","1.0.0":"2017-10-06T20:08:13.485Z","0.1.2":"2017-10-02T20:04:03.291Z","0.1.1":"2017-10-01T17:23:58.477Z","0.1.0":"2017-09-30T15:58:56.842Z","0.0.3":"2017-09-30T15:50:32.724Z","0.0.2":"2017-09-30T13:08:40.475Z","0.0.1":"2017-09-30T12:34:17.955Z","0.0.0":"2017-09-29T19:17:09.434Z"},"users":{},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"repository":{"type":"git","url":"git+https://github.com/zkochan/drive-by-path.git"},"versions":{"1.0.0":{"name":"drive-by-path","version":"1.0.0","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":"z@kochan.io","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.2","once":"^1.4.0","ramda":"^0.24.1","util.promisify":"^1.0.0","drivelist":"^5.2.4"},"devDependencies":{"standard":"^10.0.3","tape":"^4.8.0"},"optionalDependencies":{"drivelist":"^5.2.4"},"gitHead":"e4923a8c32c4e31e3cce21f48e38a011490e4c6d","_id":"drive-by-path@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"shasum":"8f0b3c62be2b43a9a8dae40047e605db6490c79e","size":2501,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-1.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-1.0.0.tgz_1507320492528_0.019699966069310904"},"directories":{},"publish_time":1507320493485,"_hasShrinkwrap":false,"_cnpm_publish_time":1507320493485},"0.1.2":{"name":"drive-by-path","version":"0.1.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"},"optionalDependencies":{"zkochan-drivelist":"^0.0.0"},"gitHead":"98d87ffce5ac1a106723d52ca2c8cc8f806c642f","_id":"drive-by-path@0.1.2","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"0f40bf15a9678fdff6ef8809c90357ed4f925885","size":2517,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-0.1.2.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.1.2.tgz_1506974642312_0.6387965991161764"},"directories":{},"publish_time":1506974643291,"_cnpm_publish_time":1506974643291,"_hasShrinkwrap":false},"0.1.1":{"name":"drive-by-path","version":"0.1.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":{"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"},"optionalDependencies":{"zkochan-drivelist":"^0.0.0"},"gitHead":"dea5fceda25d9512c184fa75ad8504cf8ec0fe8e","_id":"drive-by-path@0.1.1","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"52bb25bf64c6614b3a60738d10ce9fe9a5f0db0a","size":2510,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-0.1.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.1.1.tgz_1506878637534_0.7805356525350362"},"directories":{},"publish_time":1506878638477,"_hasShrinkwrap":false,"_cnpm_publish_time":1506878638477},"0.1.0":{"name":"drive-by-path","version":"0.1.0","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":"a47a5dcb4f8a79a710437d8d0132c240d4c61042","_id":"drive-by-path@0.1.0","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"2ae4a4a1c3cfa7749a9efe802a59ef42197102b6","size":2412,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-0.1.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.1.0.tgz_1506787135921_0.6363887437619269"},"directories":{},"publish_time":1506787136842,"_cnpm_publish_time":1506787136842,"_hasShrinkwrap":false},"0.0.3":{"name":"drive-by-path","version":"0.0.3","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":"d4efdd5cc15747dcbdf7e5193e7f33e37f851961","_id":"drive-by-path@0.0.3","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"bc20eb06c196c3a5347e52733d499ac07e8085da","size":2409,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-0.0.3.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.0.3.tgz_1506786631423_0.7627225643955171"},"directories":{},"publish_time":1506786632724,"_hasShrinkwrap":false,"_cnpm_publish_time":1506786632724},"0.0.2":{"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":{"shasum":"35a1da0381b174f2d5ef13a5fbcabb016385281d","size":2323,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-0.0.2.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.0.2.tgz_1506776919422_0.05257542594335973"},"directories":{},"publish_time":1506776920475,"_hasShrinkwrap":false,"_cnpm_publish_time":1506776920475},"0.0.1":{"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":{"shasum":"fa79fb56a78d4aff0eb0471716eeb91d686d1eca","size":2243,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-0.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.0.1.tgz_1506774857023_0.09194669383578002"},"directories":{},"publish_time":1506774857955,"_hasShrinkwrap":false,"_cnpm_publish_time":1506774857955},"0.0.0":{"name":"drive-by-path","version":"0.0.0","description":"Returns the drive to which a path belongs","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"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"},"license":"MIT","bugs":{"url":"https://github.com/zkochan/drive-by-path/issues"},"homepage":"https://github.com/zkochan/drive-by-path#readme","_id":"drive-by-path@0.0.0","_npmVersion":"5.4.2","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"39bd003c590e885fd45d241a526bd9c91fdd6e20","size":1115,"noattachment":false,"key":"/drive-by-path/-/drive-by-path-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/drive-by-path/download/drive-by-path-0.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/drive-by-path-0.0.0.tgz_1506712628523_0.3885008399374783"},"directories":{},"publish_time":1506712629434,"_cnpm_publish_time":1506712629434,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/zkochan/drive-by-path#readme","bugs":{"url":"https://github.com/zkochan/drive-by-path/issues"},"license":"MIT"}