Nachos Preventing Motivation
    Wondering what’s next for npm?Check out our public roadmap! »

    nginx-binaries
    TypeScript icon, indicating that this package has built-in type declarations

    0.6.1 • Public • Published

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

    Installation

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

    Usage Example

    import { NginxBinary, NjsBinary } from 'nginx-binaries'
    
    await NginxBinary.versions({ version: '^1.18.0' })
    // => ['1.18.0', '1.19.5']
    
    await NginxBinary.download({ version: '1.18.x' })
    // => '[...]/node_modules/.cache/nginx-binaries/nginx-1.18.0-x86_64-linux'
    
    await NjsBinary.versions({ version: '^0.4.4' })
    // => ['0.5.0']
    
    await NjsBinary.download({ version: '^0.4.4', variant: 'debug' }, '.tmp/njs')
    // => '.tmp/njs'

    API

    See on GitHub.

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

    Install

    npm i nginx-binaries

    DownloadsWeekly Downloads

    14

    Version

    0.6.1

    License

    MIT

    Unpacked Size

    62.6 kB

    Total Files

    44

    Last publish

    Collaborators

    • avatar