# nginx-binaries

> A downloader for nginx and njs standalone binaries.

Latest version **0.7.1** (published 2026-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install nginx-binaries
pnpm add nginx-binaries
yarn add nginx-binaries
bun add nginx-binaries
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2026-03-08 |
| First published | 2020-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 14.15.0 |
| Dependencies | 2 |
| Unpacked size | 63.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 84 |
| Author | Jakub Jirutka |
| Maintainers | jirutka |
| Keywords | nginx, njs, binary, binaries, static-binaries, cross-platform |

## Links

- npm: https://www.npmjs.com/package/nginx-binaries
- Repository: https://github.com/jirutka/nginx-binaries
- Issues: https://github.com/jirutka/nginx-binaries/issues
- npm.io page: https://npm.io/package/nginx-binaries

## Dependencies (2)

- [semver](https://npm.io/package/semver.md) ^7.3.4
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.11

## 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

- 0.7.1 (latest) — 2026-03-08
- 0.7.0 — 2023-05-21
- 0.6.1 — 2021-01-19
- 0.6.0 — 2021-01-19
- 0.5.0 — 2021-01-15
- 0.4.0 — 2021-01-05
- 0.3.1 — 2020-12-31
- 0.3.0 — 2020-12-27
- 0.2.0 — 2020-12-26
- 0.1.1 — 2020-12-12

## README

This project provides standalone nginx and njs (NGINX JavaScript) binaries for **any** Linux system [^1] (x86_64, aarch64, ppc64le), macOS (x86_64), and Windows (x86_64).
It also provides a JS library for downloading these binaries (for use in integration tests).

## Installation

``` sh
# using npm:
npm install --save-dev nginx-binaries
# or using yarn:
yarn add --dev nginx-binaries
```

## Usage Example

``` js
import { NginxBinary, NjsBinary } from 'nginx-binaries'

await NginxBinary.versions({ version: '^1.21.5' })
// => ['1.21.5', '1.21.6', '1.22.0']

await NginxBinary.download({ version: '1.22.x' })
// => '[...]/node_modules/.cache/nginx-binaries/nginx-1.22.0-x86_64-linux'

await NjsBinary.versions({ version: '^0.7.0' })
// => ['0.7.1', '0.7.2', '0.7.3', '0.7.4']

await NjsBinary.download({ version: '^0.7.0', variant: 'debug' }, '.tmp/njs')
// => '.tmp/njs'
```

## API

[See on GitHub](https://github.com/jirutka/nginx-binaries#api).

[^1]: nginx binaries are built as standalone static executables, so they works on every Linux system regardless of used libc.

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