Socket
Book a DemoInstallSign in
Socket

deprecations

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deprecations

Given npm module names, get a JSON map of npm version numbers to deprecation messages.

latest
Source
npmnpm
Version
4.0.2
Version published
Maintainers
1
Created
Source

deprecations Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Given npm module names, get a JSON map of npm version numbers to deprecation messages.

Example

var deprecations = require('deprecations');
var messages = deprecations('forms', 'object.assign');
var assert = require('assert');
assert.deepEqual(messages, {
	forms: {
		'0.1.0': 'Please update to the latest version',
		'0.1.1': 'Please update to the latest version',
		'0.1.2': 'Please update to the latest version',
		'0.1.3': 'Please update to the latest version',
		'0.1.4': 'Please update to the latest version',
		'0.2.0': 'Please update to the latest version',
		'0.2.1': 'Please update to the latest version',
		'0.2.2': 'Please update to the latest version',
		'0.2.3': 'Please update to the latest version',
		'0.3.0': 'Please update to the latest version',
		'0.4.0': 'Please update to the latest version',
		'0.4.1': undefined
	},
	'object.assign': {
		'0.1.0': 'Please upgrade to the latest spec-compliant version',
		'0.1.1': 'Please upgrade to the latest spec-compliant version',
		'0.2.0': 'Please upgrade to the latest spec-compliant version',
		'0.2.1': 'Please upgrade to the latest spec-compliant version',
		'0.3.1': undefined
	}
});

Alternatively, install it as a global module, and then run:

deprecations forms object.assign

which will print out the same output, as valid JSON.

Tests

Simply clone the repo, npm install, and run npm test

Keywords

deprecations

FAQs

Package last updated on 09 Mar 2024

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