Sign in Sign up
npm

get-first-from-filepath

Get the very first directory name from file path `./foo/bar/baz` -> `foo` or `../a/b/c` -> `../a`. Useful when you just want first real directory from given file path

npm View on Npm

Activity

Latest release
11y ago
Total releases
3
Cadence
~daily
Last 12 months
0

Details

License
MIT
First release
Feb 27, 2015
Releases
Version Released
1.0.1 patch
1.0.0 major
0.0.0 initial