1.0.3 • Published 4 years ago

ancestor-directories v1.0.3

Weekly downloads
35
License
MIT
Repository
github
Last release
4 years ago

ancestor-directories

Iterate over all parent directories of a given path

Requirements

  • Node.js ≥ 8.9.0

APIs

Function Signature

declare function allAncestorDirectories (path: string): IterableIterator<string>

Example

import process from 'process'
import {allAncestorDirectories} from 'ancestor-directories'

const ancestors = [...allAncestorDirectories(process.cwd())]
console.log('All ancestors of cwd', ancestors)

License

MIT © Hoàng Văn Khải

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago