# pkg-down

> Find the topmost package.json file.

Latest version **0.1.0** (published 2016-08-11) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install pkg-down
pnpm add pkg-down
yarn add pkg-down
bun add pkg-down
```

## 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.0 |
| Published | 2016-08-11 |
| First published | 2016-08-11 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Seth Holladay |
| Maintainers | sholladay |
| Keywords | pkg, package, file, find, down, find-down, finddown, look-down, look, file, files, search, match, resolve, parent, parents, folder, directory, directories, dir, dirs, walk, walking, path, paths |

## Links

- npm: https://www.npmjs.com/package/pkg-down
- Repository: https://github.com/sholladay/pkg-down
- Issues: https://github.com/sholladay/pkg-down/issues
- npm.io page: https://npm.io/package/pkg-down

## Dependencies (1)

- [find-down](https://npm.io/package/find-down.md) ^0.1.1

## 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.1.0 (latest) — 2016-08-11

## README

# pkg-down [![Build status for pkg-down on Circle CI.](https://img.shields.io/circleci/project/sholladay/pkg-down/master.svg "Circle Build Status")](https://circleci.com/gh/sholladay/pkg-down "Pkg Down Builds")

> Find the topmost package.json file.

## Why?

 - Some.
 - Various.
 - Reasons.

## Install

```sh
npm install pkg-down --save
```

## Usage

Get it into your program.

```js
const pkgDown = require('pkg-down');
```

Find the package.json file closest to the root of the filesystem.

```js
pkgDown().then(filepath => {
    console.log(filepath);  // => '/Users/sholladay/foo/package.json'
});
```

## Contributing

See our [contributing guidelines](https://github.com/sholladay/pkg-down/blob/master/CONTRIBUTING.md "The guidelines for participating in this project.") for more details.

1. [Fork it](https://github.com/sholladay/pkg-down/fork).
2. Make a feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. [Submit a pull request](https://github.com/sholladay/pkg-down/compare "Submit code to this project for review.").

## License

[MPL-2.0](https://github.com/sholladay/pkg-down/blob/master/LICENSE "The license for pkg-down.") © [Seth Holladay](http://seth-holladay.com "Author of pkg-down.")

Go make something, dang it.

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