🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

specified-package-version-check

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

specified-package-version-check

check the specified package version is outdated or not

npmnpm
Version
1.0.0
Version published
Weekly downloads
15
Maintainers
1
Weekly downloads
 
Created
Source

specified-package-version-check

[ENGLISH] | 中文

Introduce

specified-package-version-check is a script which can check the specified package version is outdated or not, if outdated, develop env process will be exist.

For some case, e.g. our team develop ourselves eslint rules as a npm package, if we update the npm package version, we hope all of our team member must use the latest npm version.

Usage

// Run this script first, e.g. { "start": node check && webpack-dev-server --open --history-api-fallback -d --colors}
//check.js
const checkDependenceVersion = require('specified-package-version-check');

async function func() {
  await checkDependenceVersion({
    dependenceArr: ['axios', 'specified-package-version-check', '@shuyun-ep-team/eslint-config'],
    ignoreCheck: false,
    onlyWarn: false,
    checkAllLocalDependencies: false,
  });

  console.log('end');
}

func();

API

PropertyDescriptionTypeDefaultVersion
dependenceArrdependence need to be checkedstring[][]0.0.1
ignoreCheckskip checkbooleanfalse0.0.1
onlyWarnonly warn when specified package outdatedbooleanfalse0.0.1
checkAllLocalDependenciescheck all packages version in package.jsonbooleanfalse0.0.1

Keywords

version

FAQs

Package last updated on 03 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts