# @fmtk/package-path

> Get information about the package path.

Latest version **0.1.2** (published 2019-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fmtk/package-path
pnpm add @fmtk/package-path
yarn add @fmtk/package-path
bun add @fmtk/package-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.1.2 |
| Published | 2019-10-10 |
| First published | 2019-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gordon Leigh |
| Maintainers | gordonmleigh |

## Links

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

## Recent versions

- 0.1.2 (latest) — 2019-10-10
- 0.1.1 — 2019-10-10
- 0.1.0 — 2019-10-10

## README

# @fmtk/package-path

Get information about the package path.

## Quick start

In your module, add the following code:

```typescript
import { getModulePath } from '@fmtk/package-path';

export const source = getModulePath();

export function foo() {
  console.log('hello world');
}
```

In your dependent module, reference the function like this:

```typescript
// import the module from above
import * as mymodule from 'mymodule';

// the 'foo' argument is type-checked
const handler = getHandler(mymodule, 'foo');
```

```javascript
handler = {
  code: '/path/to/node_modules/mymodule/',
  handler: 'lib/filename.foo',
};
```

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