# lookup-path

> Attempt to resolve the absolute filepath to a file and verify that it exists.

Latest version **0.3.1** (published 2016-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install lookup-path
pnpm add lookup-path
yarn add lookup-path
bun add lookup-path
```

## 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.3.1 |
| Published | 2016-02-07 |
| First published | 2014-07-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | absolute, current, cwd, directory, file, filepath, find, join, lookup, path, relative, resolve, working |

## Links

- npm: https://www.npmjs.com/package/lookup-path
- Repository: https://github.com/jonschlinkert/lookup-path
- Issues: https://github.com/jonschlinkert/lookup-path/issues
- npm.io page: https://npm.io/package/lookup-path

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^2.2.0
- [is-absolute](https://npm.io/package/is-absolute.md) ^0.2.3

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 0.3.1 (latest) — 2016-02-07
- 0.3.0 — 2014-08-03
- 0.2.0 — 2014-07-23
- 0.1.1 — 2014-07-19
- 0.1.0 — 2014-07-19

## README

# lookup-path [![NPM version](https://img.shields.io/npm/v/lookup-path.svg)](https://www.npmjs.com/package/lookup-path) [![Build Status](https://img.shields.io/travis/jonschlinkert/lookup-path.svg)](https://travis-ci.org/jonschlinkert/lookup-path)

> Attempt to resolve the absolute filepath to a file and verify that it exists.

You might also be interested in [is-absolute](https://github.com/jonschlinkert/is-absolute).

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm i lookup-path --save
```

## Usage

```js
var lookup = require('lookup-path');
console.log(lookup('package.json'));
//=> '~/package.json'

// pass a cwd as a second parameter
lookup('foo.js', 'test');
```

## Related projects

* [is-absolute](https://www.npmjs.com/package/is-absolute): Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute)
* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative)
* [is-windows](https://www.npmjs.com/package/is-windows): Returns true if the platform is windwows. | [homepage](https://github.com/jonschlinkert/is-windows)

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/lookup-path/issues/new).

## Author

**Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)
Released under the [MIT license](https://github.com/jonschlinkert/lookup-path/blob/master/LICENSE).

***

_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 07, 2016._

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