depth
Returns the depth of a file or directory, e.g. number of folders deep.
Install
npm:
Install withnpm i depth --save-dev
Run tests
npm test
Usage
var depth = ; console;//=> 0console;//=> 1console;//=> 2console;//=> 2
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license