# install-self

> Self-reference an NPM module and get rid of relative references

Latest version **1.0.0-beta.7** (published 2016-12-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install install-self
pnpm add install-self
yarn add install-self
bun add install-self
```

Provides the command `install-self`.

## 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.0.0-beta.7 |
| Published | 2016-12-06 |
| First published | 2016-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Richford |
| Maintainers | jamesrichford |
| Keywords | install, self, npm, link, reference |

## Links

- npm: https://www.npmjs.com/package/install-self
- Repository: https://github.com/jamesrichford/install-self
- Homepage: https://github.com/jamesrichford/install-self#readme
- Issues: https://github.com/jamesrichford/install-self/issues
- npm.io page: https://npm.io/package/install-self

## Recent versions

- 1.0.0-beta.7 (latest) — 2016-12-06
- 1.0.0-rc.1 (rc) — 2019-10-25
- 1.0.0-rc.0 — 2019-10-25
- 1.0.0-beta.6 — 2016-12-06
- 1.0.0-beta.5 — 2016-12-06
- 1.0.0-beta.4 — 2016-12-06
- 1.0.0-beta.3 — 2016-12-06
- 1.0.0-beta.2 — 2016-12-06
- 1.0.0-beta.1 — 2016-12-06
- 1.0.0-beta.0 — 2016-12-06

## README

# install-self

reference your npm module from itself

## Usage

```npm install install-self --save-dev```

Add ```install-self``` to your npm scripts or install it globally and run direct from your CLI

Reference your package

```javascript
// es5
var package = require("package-name");

// es6
import { something } from "package-name";
```

Good news it works with TypeScript too (including typings!)

## Why?

Simplify the process of integration testing NPM modules

If your NPM module depends on a package that depends on a different version of the original module then this can cause problems with using things like ```npm link```

## How?

It simply puts your package.json into the node_modules folder and updates the references

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