0.2.4 • Published 6 years ago

npm-supervisor v0.2.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

NPM Supervisor 🎛

The NPM Supervisor checks your package.json engines version ranges against you global and/or local installed binaries.

preview

Why?

Because NPM does this only when someone else installs you program but sometimes you don't want your friends to get errors with having the wrong node version.

How to use

Programmatically

import Supervisor from 'npm-supervisor'

const supervisor = new Supervisor({
  engines: {
    node: '>=10.3.0',
  },
})

Psst! Have a look at our tests to see more examples.

Options

NameTypeDefaultDescription
debugbooleanfalseEnables more verbose output.
cwdstringprocess.cwd()Modify the string to search for engines.
enginesEnginesnullPass your own object of engines.
silentbooleantrueJust no interactive output.

Command Line

$ npm-supervisor

Options

  Usage
    $ npm-engineer <directory>

  Options
    --ignoreLocal, -i  Ignore local installed node modules (true)

    --debug     Debug program
    --version   Show version
    --help      Show help
0.2.4

6 years ago

0.2.3-test.1

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago