0.0.0 • Published 9 years ago

pathfind v0.0.0

Weekly downloads
7
License
-
Repository
github
Last release
9 years ago

pathfind Circle CI

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.