# get-package-path

> Get the path to the current package works with npx and global installations.

Latest version **0.0.1** (published 2021-06-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-package-path
pnpm add get-package-path
yarn add get-package-path
bun add get-package-path
```

Provides the command `get-package-path`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-06-19 |
| First published | 2021-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 14 |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | tobua |

## Links

- npm: https://www.npmjs.com/package/get-package-path
- Repository: https://github.com/tobua/get-package-path
- Homepage: https://github.com/tobua/get-package-path#readme
- Issues: https://github.com/tobua/get-package-path/issues
- npm.io page: https://npm.io/package/get-package-path

## Dependencies (1)

- [global-dirs](https://npm.io/package/global-dirs.md) ^3.0.0

## Recent versions

- 0.0.1 (latest) — 2021-06-19
- 0.0.0 — 2021-06-08

## README

# get-package-path

Get the path to the current package works with npx and global installations.

> :warning: Package is currently in test stage and actual API differs from description!

## Usage

```
npm install get-package-path
```

```js
import { getPackagePath } from 'get-package-path'

console.log(getPackagePath('my-package-name'))
```

Can also be used to locate other dependent packages.

## Verification

To check if the package would work with your requirements you can directly try it out.

### npx

```sh
npx --yes get-package-path
```

`npm init` would store the package in the same place as `npx`.

### global

```sh
npm install -g get-package-path
get-package-path
# Prints path to package.
npm uninstall -g get-package-path
```

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