pathfind
v0.0.0
Published
Find a directory within a list of paths
Downloads
1
Readme
pathfind
Find a directory in a list of paths.
Requirements
- Node >= 0.11.13
Installation
$ npm install pathfind
API
All examples assume the following example directory layout:
$ mkdir -p a/sub_a b/sub_b c/sub_c
pathfind(<string[]> paths, <string> target) => Promise
Asynchronously find a target
path in a list of paths
.
pathfind(['a', 'b', 'c'], 'sub_b');
// => 'a/sub_b'
License
Copyright 2014 Nathan Houle. Released under the MIT license.