path-depth
Get the path of a file/URL path.
Last updated 11 years ago by derhuerst .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install path-depth 
SYNC missed versions from official npm registry.

path-depth

Get the depth of a file/URL path.

depth('/a/b/c')      //  3
depth('a\\..\\b\\c') //  2
depth('a/./b')       //  2
depth('foo/../..')   // -1
depth('.')           //  0

npm version build status ISC-licensed chat on gitter support me on Patreon

Installing

npm install path-depth

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Current Tags

  • 1.0.0                                ...           latest (7 years ago)

3 Versions

  • 1.0.0                                ...           7 years ago
  • 0.2.0                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 12
Today 0
This Week 3
This Month 12
Last Day 0
Last Week 9
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE