{"_id":"path-depth","_rev":"1736387","name":"path-depth","description":"Get the depth of a file/URL path.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"time":{"modified":"2026-11-15T23:33:14.000Z","created":"2016-02-20T16:36:40.776Z","1.0.0":"2019-06-20T14:52:50.924Z","0.2.0":"2016-03-20T17:11:08.246Z","0.1.0":"2016-02-20T16:36:40.776Z"},"users":{},"author":{"name":"Jannis R","email":"mail@jannisr.de"},"repository":{"type":"git","url":"git://github.com/derhuerst/path-depth.git"},"versions":{"1.0.0":{"name":"path-depth","description":"Get the depth of a file/URL path.","version":"1.0.0","main":"index.js","keywords":["depth","relative","path","absolute","path","resolution"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/path-depth","repository":{"type":"git","url":"git://github.com/derhuerst/path-depth.git"},"license":"ISC","engines":{"node":">=8"},"devDependencies":{"tap-min":"^2.0.0","tape":"^4.6"},"scripts":{"test":"node test.js | tap-min","prepublish":"npm test"},"gitHead":"8fc9a2aa0e74e6fd1bda502f67a9ad47b454610f","bugs":{"url":"https://github.com/derhuerst/path-depth/issues"},"_id":"path-depth@1.0.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-dEiwdXAQyLvOi6ktLqhFhjVelJiVsdp2xBX3BaUtYCCkMRZTwUiq7cha+A0myvAVXRHbXfjhfTf4mNoAWzm2iA==","shasum":"88cf881097e171b8b54d450d2167ea76063d3086","tarball":"http://registry-npm.ywwl.com/path-depth/download/path-depth-1.0.0.tgz","fileCount":4,"unpackedSize":2687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdC53DCRA9TVsSAnZWagAAaecP+wegQQV261wn7VzZw+30\nTHfjl73Y0zTE/nfE8rH6VdWPyJZ/5C311cxRH7GWhoM8eF85NqHf3BbTyzQr\nritMLgEGFnXYQAkyTLm/Br/W92RY8vTn0C1ODZp8OT6cUT2a3YGm35U7BI/T\nVe9i2DDHPipcCJmNlwWAtzrPScpuKtFNXSrTo90ObuYlB3ygNL2H/6gEiQlM\nDcJxXsaQJ5KztfMx8V/Dj8pZCXL6fNjSIe9VYBnBVa4oirTlgzeAuLyVkeIy\n/Sp7xJEwFnF8E+MCEiXOyizZj2vZ/SP9Md1N1Q4V4UWHHU2UUyZ0+B3BgO7t\n5C1zJ/xwtDkU8oCrquRhcxu/6bAubec2FMEEe74uyRTv1lSFuixxHFJ4iabX\ne6aUiauHIcvqN+wmav5fFklYjbDOsjU4dr5Q0rVhFM9VC5SIJA34ny3g5Kup\noOGJwPI+iW97p9mrU+omWsiIe/akoUtQOU5irEIZ5CZ5PtLK1l1w7YFAm6JA\nScbH5Lj4pzkssd/NbWxuTo/d+pzHmqrCh7RoiW7PN+9uIY4C9soa8BMOCD/d\n82l/Sn1ycOwiWEDyKm/4t3RmNbrQkJ+g5M7xF0buUf79rHWZTG7vJuv+QtJV\nFgsWma+UAnAq8mhBcK2inoHwX5OA/guX7T6E1FSpT5unhaGKx47ySZ9VEbDO\n1+SY\r\n=C0/V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAY9nODbSA376k+WbFzijiz4N/KXkH1Z+zj+LVz2VoPwIgFAxekPLz8DRaaFHw03pgFddAf5DPXrBxl9GZ0f73g14="}],"size":1551,"noattachment":false,"key":"/path-depth/-/path-depth-1.0.0.tgz"},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-depth_1.0.0_1561042370798_0.9191358712987996"},"_hasShrinkwrap":false,"publish_time":1561042370924,"_cnpm_publish_time":1561042370924},"0.2.0":{"name":"path-depth","description":"Get the depth of a file/URL path.","version":"0.2.0","main":"index.js","files":["index.js","readme.md"],"keywords":["depth","relative","path","absolute","path","resolution"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/path-depth","repository":{"type":"git","url":"git://github.com/derhuerst/path-depth.git"},"license":"ISC","engines":{"node":">=4"},"devDependencies":{"coffee-script":"^1.10","nodeunit":"^0.9.1","watchy":"^0.6.6"},"scripts":{"test":"nodeunit --reporter minimal test.coffee","test:watch":"watchy -s -w . nodeunit --reporter minimal test.coffee","prepublish":"npm test"},"gitHead":"5aad94522ec25d56cb82d47e892e0597cf35fa85","bugs":{"url":"https://github.com/derhuerst/path-depth/issues"},"_id":"path-depth@0.2.0","_shasum":"c220b270734cf4d3a815afd6490a331cfab40fb9","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"dist":{"shasum":"c220b270734cf4d3a815afd6490a331cfab40fb9","tarball":"http://registry-npm.ywwl.com/path-depth/download/path-depth-0.2.0.tgz","integrity":"sha512-R9Yy34ba5phFzOT08EiMM0XDPrB1Fw3607utbXidPg7wjYCWVfTqKoC/f0v8pqkeGdMDGJVnsxh00h1BzcSlOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDHo46yFuYCWqCseqOOXOxSkIVve7xBOqJ3KfyMlo5lAiEAq+hLp/PWTZ5aJfMO48b3pBHQU0zaRNMq4zdzBonb08w="}],"size":1526,"noattachment":false,"key":"/path-depth/-/path-depth-0.2.0.tgz"},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/path-depth-0.2.0.tgz_1458493865846_0.5138339775148779"},"directories":{},"publish_time":1458493868246,"_cnpm_publish_time":1458493868246},"0.1.0":{"name":"path-depth","description":"Get the path of a file/URL path.","version":"0.1.0","main":"index.js","files":["index.js","readme.md"],"keywords":["depth","relative","path","absolute","path","resolution"],"author":{"name":"Jannis R","email":"mail@jannisr.de"},"homepage":"https://github.com/derhuerst/path-depth","repository":{"type":"git","url":"git://github.com/derhuerst/path-depth.git"},"license":"ISC","engines":{"node":">=5"},"devDependencies":{"coffee-script":"^1.10","nodeunit":"^0.9.1","watchy":"^0.6.6"},"scripts":{"test":"nodeunit --reporter minimal test.coffee","test:watch":"watchy -s -w . nodeunit --reporter minimal test.coffee","prepublish":"npm test"},"gitHead":"982943d67dcbfb7cad2aaa4f67f989042baec7db","bugs":{"url":"https://github.com/derhuerst/path-depth/issues"},"_id":"path-depth@0.1.0","_shasum":"8fc3d53fbb5e6ed02c71f5e2f57b25f216ae894e","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.6.0","_npmUser":{"name":"derhuerst","email":"mail@jannisr.de"},"dist":{"shasum":"8fc3d53fbb5e6ed02c71f5e2f57b25f216ae894e","tarball":"http://registry-npm.ywwl.com/path-depth/download/path-depth-0.1.0.tgz","integrity":"sha512-rZXdK8lrMyRI44WvmWrIu2+VB9fzv63SOrR6zvfP7bwkuKwDXH0dDZeDPV/bP76FY6Ws635w3aEE+q+z7jxhBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICT9spJDmHcinW+CIGOQeThmlMNZsXW8MV/a8AT9BnBMAiEAiWj8UXxwtKnu4ieXz0KbDuLzmNLgFZMnMAsoHixkVgQ="}],"size":1527,"noattachment":false,"key":"/path-depth/-/path-depth-0.1.0.tgz"},"maintainers":[{"name":"derhuerst","email":"mail@jannisr.de"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/path-depth-0.1.0.tgz_1455986196041_0.5943919068668038"},"directories":{},"publish_time":1455986200776,"_cnpm_publish_time":1455986200776}},"readme":"# path-depth\n\n**Get the depth of a file/URL path.**\n\n```javascript\ndepth('/a/b/c')      //  3\ndepth('a\\\\..\\\\b\\\\c') //  2\ndepth('a/./b')       //  2\ndepth('foo/../..')   // -1\ndepth('.')           //  0\n```\n\n[![npm version](https://img.shields.io/npm/v/path-depth.svg)](https://www.npmjs.com/package/path-depth)\n[![build status](https://img.shields.io/travis/derhuerst/path-depth.svg)](https://travis-ci.org/derhuerst/path-depth)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/path-depth.svg)\n[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)\n[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)\n\n\n## Installing\n\n```shell\nnpm install path-depth\n```\n\n\n## Contributing\n\nIf you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/path-depth/issues).\n","_attachments":{},"homepage":"https://github.com/derhuerst/path-depth","bugs":{"url":"https://github.com/derhuerst/path-depth/issues"},"license":"ISC"}