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
.
;// => 'a/sub_b'
License
Copyright 2014 Nathan Houle. Released under the MIT license.