1.0.3 • Published 5 years ago

ancestor-directories v1.0.3

Weekly downloads
35
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago