Get the depth of a file/URL path.
npm install path-depthGet the depth of a file/URL path.
``javascript`
depth('/a/b/c') // 3
depth('a\\..\\b\\c') // 2
depth('a/./b') // 2
depth('foo/../..') // -1
depth('.') // 0


!ISC-licensed


`shell``
npm install path-depth
If you have a question, found a bug or want to propose a feature, have a look at the issues page.