# @parkhub/proto-finder

> Returns the full-path of a protofile in the nearest proto directory to where your application is running from.

Latest version **0.1.2** (published 2018-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @parkhub/proto-finder
pnpm add @parkhub/proto-finder
yarn add @parkhub/proto-finder
bun add @parkhub/proto-finder
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-07-30 |
| First published | 2017-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel Olivares |
| Maintainers | accloudcoder, daytonpe, fliko, jonsenterfitt, loganbfisher, novym, realtschoegl, sirmyztiq, thetwosents, topnacho, virgilpate |

## Links

- npm: https://www.npmjs.com/package/@parkhub/proto-finder
- npm.io page: https://npm.io/package/@parkhub/proto-finder

## Dependencies (1)

- [globby](https://npm.io/package/globby.md) ^8.0.1

## Recent versions

- 0.1.2 (latest) — 2018-07-30
- 0.1.1 — 2017-11-10
- 0.1.0 — 2017-05-22

## README

# Proto Finder

> Find your protofiles in the nearest proto directory

Quickly find the full path to a protofile by name in the nearest 'protos' directory.

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### findSingleFile

Find a protofile's full path in a 'protos' directory by searching UP  from your current process.

**Parameters**

-   `fileName`  

**Examples**

```javascript
import protoFinder from '@parkhub/proto-finder';

const protoFullPath = protoFinder.findSingleFile('test');
```

**Meta**

-   **author**: Daniel Olivares

### findSingleFile

Get the full path of a single file by it's name in the nearest 'protos' directory.

**Parameters**

-   `fileName`  
-   `String`  fileName the name of the file to search for

Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)>** The full path of the file's location

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