# localinstall

> pack and install your npm package into itself

Latest version **1.2.0** (published 2016-07-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install localinstall
pnpm add localinstall
yarn add localinstall
bun add localinstall
```

Provides the command `localinstall`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2016-07-04 |
| First published | 2016-06-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jesse Jurman |
| Maintainers | jrjurman |

## Links

- npm: https://www.npmjs.com/package/localinstall
- Repository: https://github.com/JRJurman/localinstall
- Homepage: https://github.com/JRJurman/localinstall#readme
- Issues: https://github.com/JRJurman/localinstall/issues
- npm.io page: https://npm.io/package/localinstall

## Recent versions

- 1.2.0 (latest) — 2016-07-04
- 1.1.1 — 2016-06-30
- 1.1.0 — 2016-06-30
- 1.0.1 — 2016-06-30
- 1.0.0 — 2016-06-30
- 0.0.2 — 2016-06-30
- 0.0.1 — 2016-06-30

## README

# localinstall
Pack and install your npm package into itself. This is useful if you want to run
tests against the distributable that other npm users will be using, and not
against the lib / dist in your own build.

## Usage
First install this package using npm
```
$ npm install localinstall --save-dev
```

Then edit your package.json to include the command before your tests
```javascript
"scripts": {
  "pretest": "localinstall",
  "test": "your-tests-here"
}
```

Now, in your tests, you can test your package as if it was installed by an end
user.

```javascript
var mypackage = require('mypackage');
...
```

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