Get the very first directory name from file path
../aUseful when you just want first real directory from given file path
npm i --save get-first-from-filepath npm test
For more use-cases see the tests
var getFirstFromFilepath = ;;//=> 'foo';//=> 'foo';//=> 'foo';//=> '../foo';//=> '..foo'
Charlike Mike Reagent
Powered and automated by kdf, February 27, 2015