All Projects → harksys → Npmvet

harksys / Npmvet

Licence: mit
A simple CLI tool for vetting npm package versions

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Npmvet

Please Upgrade Node
💁 Show a message to your users to upgrade Node instead of a stacktrace
Stars: ✭ 219 (+13.47%)
Mutual labels:  version, cli, package
Wasm Pack
This tool seeks to be a one-stop shop for building and working with rust- generated WebAssembly that you would like to interop with JavaScript, in the browser or with Node.js. wasm-pack helps you build rust-generated WebAssembly packages that you could publish to the npm registry, or otherwise use alongside any javascript packages in workflows that you already use, such as webpack.
Stars: ✭ 3,848 (+1893.78%)
Mutual labels:  cli, package, npm
Npm Upgrade
Interactive CLI utility to easily update outdated NPM dependencies
Stars: ✭ 245 (+26.94%)
Mutual labels:  cli, npm, packages
Repology Updater
Repology backend service to update repository and package data
Stars: ✭ 348 (+80.31%)
Mutual labels:  version, package, packages
Gub
CLI tool for create an npm package from any repos. 🐳
Stars: ✭ 31 (-83.94%)
Mutual labels:  cli, package, npm
Xa
Beautiful & Customizable logger ❤️
Stars: ✭ 78 (-59.59%)
Mutual labels:  cli, package, npm
repology-rules
Package normalization ruleset for Repology
Stars: ✭ 67 (-65.28%)
Mutual labels:  package, packages, version
Syncpack
Manage multiple package.json files, such as in Lerna Monorepos and Yarn/Pnpm Workspaces
Stars: ✭ 356 (+84.46%)
Mutual labels:  cli, npm, packages
Typac
install npm packages along with corresponding typings
Stars: ✭ 29 (-84.97%)
Mutual labels:  cli, package, npm
Npm Compare
Compare npm packages from your terminal
Stars: ✭ 55 (-71.5%)
Mutual labels:  cli, npm, packages
Npm Try
🚆 Quickly try npm packages without writing boilerplate code.
Stars: ✭ 103 (-46.63%)
Mutual labels:  cli, package, npm
Create New Cli
Create your own CLI using a series of simple commands.
Stars: ✭ 122 (-36.79%)
Mutual labels:  cli, npm
Atbmarket
🎉 JUST FOR FUN :: npm package of ATB plastic bag
Stars: ✭ 123 (-36.27%)
Mutual labels:  cli, npm
Pip Check
pip-check gives you a quick overview of all installed packages and their update status.
Stars: ✭ 134 (-30.57%)
Mutual labels:  version, package
Tosin
Initialize a npm package with everything included, from CI to documentation website
Stars: ✭ 142 (-26.42%)
Mutual labels:  package, npm
Getme
CLI utility for everyday tasks. With getme you get weather, forecast, currency rate, upload files, IP address, word definitions, text translations, internet speed, do google searches, get inspirational quotes and get Chuck Norris jokes
Stars: ✭ 118 (-38.86%)
Mutual labels:  cli, npm
Ohshitgit
⁉️Oh shit! A cli tool to help you unfuck your git mistakes
Stars: ✭ 135 (-30.05%)
Mutual labels:  cli, npm
Modern Wasm Starter
🛸 Run C++ code on web and create blazingly fast websites! A starter template to easily create WebAssembly packages using type-safe C++ bindings with automatic TypeScript declarations.
Stars: ✭ 140 (-27.46%)
Mutual labels:  package, npm
Update Check
Minimalistic update notifications for command line interfaces
Stars: ✭ 145 (-24.87%)
Mutual labels:  package, checker
Actions Cli
Monitor your GitHub Actions in real time from the command line
Stars: ✭ 156 (-19.17%)
Mutual labels:  cli, ci

Build status

NPM Vet is a simple CLI tool to help vet your npm package versions. NPM Vet can be used locally, or as a CI build-step to prevent builds passing with mismatched package versions. To read more about NPM Vet, visit the Hark website.

Installation

$ npm install npmvet -g

Usage

Usage: npmvet [options]

Options:

  -h, --help                 output usage information
  -V, --version              output the version number
  -p, --package <package>    package.json file location (Default: .)
  -m, --modules <modules>    node_modules folder location (Default: .)
  -r, --renderer <renderer>  Renderer to use (Default: inlinetable)
  -s, --strict               Using the CI renderer, fail build if any packages unlocked (Default: false, flag)

Strict Mode

If you're using the CI renderer (see below) the -s flag will enable strict mode. In which builds will fail if versions are unlocked, not just unmatching.

Renderers

Renderers are used to dictate how to output the data NPM Vet collects. The default is inlinetable.

Inline Table

$ npmvet -r inlinetable

The default renderer, inlinetable will print a table inline with your current process. You can use this locally to visualise package differences.

CI

$ npmvet -r ci

To prevent your CI builds passing with mismatched package versions, use the CI renderer. If any package version mismatches are found, the build will fail:

Or if there are no mismatching package versions, your build will continue (and hopefully pass!):

Blessed

The blessed renderer will render a table inside a screen, that has be exited by the user to escape.

$ npmvet -r blessed

JSON

The JSON renderer will print a JSON array with match information for each package.

$ npmvet -r json
[
  {
    "name": "blessed",
    "packageVersion": "0.1.81",
    "installedVersion": "0.1.81",
    "matches": true,
    "locked": false
  },
  {
    "name": "chalk",
    "packageVersion": "1.1.3",
    "installedVersion": "1.1.3",
    "matches": true,
    "locked": false
  },
  {
    "name": "jest",
    "packageVersion": "18.1.0",
    "installedVersion": "18.1.0",
    "matches": true,
    "locked": false
  }
]

Contributing

For information regarding contributing to this project, please read the Contributing document.

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].