# npm-lifecycle

> JavaScript package lifecycle hook runner

Latest version **3.1.5** (published 2020-03-26) · Artistic-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.1.5 |
| Published | 2020-03-26 |
| First published | 2017-08-16 |
| Weekly downloads | 0 |
| License | Artistic-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 34.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36 |
| Author | Mike Sherov |
| Maintainers | adam_baldwin, claudiahdz, darcyclarke, isaacs, ruyadorno |
| Keywords | npm, lifecycle, hook, runner |

## Links

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

## Dependencies (8)

- [slide](https://npm.io/package/slide.md) ^1.1.6
- [umask](https://npm.io/package/umask.md) ^1.1.0
- [which](https://npm.io/package/which.md) ^1.3.1
- [byline](https://npm.io/package/byline.md) ^5.0.0
- [node-gyp](https://npm.io/package/node-gyp.md) ^5.0.2
- [uid-number](https://npm.io/package/uid-number.md) 0.0.6
- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.1.15
- [resolve-from](https://npm.io/package/resolve-from.md) ^4.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.1.5 (latest) — 2020-03-26
- 3.1.4 — 2019-09-18
- 3.1.3 — 2019-08-12
- 3.1.2 — 2019-07-22
- 3.1.1 — 2019-07-22
- 3.1.0 — 2019-07-17
- 3.0.0 — 2019-07-10
- 2.1.1 — 2019-05-08
- 2.1.0 — 2018-08-13
- 2.0.3 — 2018-05-16
- 2.0.2 — 2018-05-16
- 2.0.1 — 2018-03-08
- 2.0.0 — 2017-11-17
- 1.0.3 — 2017-09-01
- 1.0.2 — 2017-08-17
- … 2 more at https://npm.io/package/npm-lifecycle/versions

## README

# Note: pending imminent deprecation

**This module will be deprecated once npm v7 is released.  Please do not rely
on it more than absolutely necessary.**

The lifecycle script runner used in npm v7 is
[@npmcli/run-script](http://npm.im/@npmcli/run-script).  Please use that
module moving forward.

-----

# npm-lifecycle

[`npm-lifecycle`](https://github.com/npm/npm-lifecycle) is a standalone library for
executing packages' lifecycle scripts. It is extracted from npm itself and
intended to be fully compatible with the way npm executes individual scripts.

## Install

`$ npm install npm-lifecycle`

## Table of Contents

* [Example](#example)
* [Features](#features)
* [Contributing](#contributing)
* [API](#api)
  * [`lifecycle`](#lifecycle)

### Example

```javascript
// idk yet
```

### API

#### <a name="lifecycle"></a> `> lifecycle(name, pkg, wd, [opts]) -> Promise`

##### Arguments

* `opts.stdio` - the [stdio](https://nodejs.org/api/child_process.html#child_process_options_stdio)
passed to the child process. `[0, 1, 2]` by default.

##### Example

```javascript
lifecycle()
```

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