iterate-directory-up
v1.1.1
Published
Iterate directory up.
Downloads
9,440
Readme
iterate-directory-up
Iterate directory up.
Install
yarn add iterate-directory-up
Usage
import iterateDirectoryUp from 'iterate-directory-up'
for (const directory of iterateDirectoryUp('/a/b')) {
console.log(directory)
}
// "/a/b"
// "/a"
// "/"