# @tww/up-resolve

> > Search up the directory tree from your cwd for specific files.

Latest version **1.0.2** (published 2018-12-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tww/up-resolve
pnpm add @tww/up-resolve
yarn add @tww/up-resolve
bun add @tww/up-resolve
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-12-22 |
| First published | 2017-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 71 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 41 |
| Maintainers | ericwooley, tww-ericwooley |

## Links

- npm: https://www.npmjs.com/package/@tww/up-resolve
- Repository: https://github.com/thewooleyway/thewooleymeta
- Homepage: https://github.com/thewooleyway/thewooleymeta#readme
- Issues: https://github.com/thewooleyway/thewooleymeta/issues
- npm.io page: https://npm.io/package/@tww/up-resolve

## Recent versions

- 1.0.2 (latest) — 2018-12-22
- 1.0.1 — 2017-07-02
- 1.0.0 — 2017-07-02

## README

# @tww/up-resolve [![npm version](https://badge.fury.io/js/%40tww%2Fup-resolve.svg)](https://badge.fury.io/js/%40tww%2Fup-resolve)

> Search up the directory tree from your cwd for specific files.

## Installation

```sh
$ npm install --save @tww/up-resolve
```

## Usage

Up resolve starts at the current working directory, and walks up the tree, looking for files/directories that match the string, or the regex patten. 

returns an array of files that match your file pattern.
```js
var upResolve = require('@tww/up-resolve');
console.log(upResolve(['package.json']))
// [ '/Users/ericwooley/Dropbox/projects/appgen/packages/up-resolve/package.json',
//  '/Users/ericwooley/Dropbox/projects/appgen/package.json' ]
```

## API
<a name="resolveFS"></a>

### module.exports.resolveFS(fileNames, opts)
**Kind**: global function

| Param | Type | Description |
| --- | --- | --- |
| fileNames | <code>Array.&lt;(String\|Regex)&gt;</code> | An array of file names or regex patterns to search for |
| opts | <code>Object</code> | does nothing yet, reserved. |


## License

MIT © [Eric Wooley](github.com/ericwooley)

---
_Source: https://npm.io/package/@tww/up-resolve · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
