iterate-directory-up
v1.1.1
Published
Iterate directory up.
Downloads
10,238
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"
// "/"