pathfind

0.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i pathfind

Weekly Downloads

1

Version

0.0.0

License

none

Last publish

Collaborators

  • ndhoule