package-outdated
Returns the outdated packages of a package.json file.
Install
npm install package-outdated
Usage
const readOutdated = async console; //=> {foo: { current: '1.0.0', latest: '2.0.0' }, ...} console; //=> {foo: { current: '^1.0.0', latest: '2.0.0' }, ...} ;
API
readOutdated(options?)
Returns the outdated packages of a package.json file.
Options
dir
Type: string
Default: process.cwd()
Current working directory.
preservePrefix
Type: boolean
Default: false
Preserves the semver prefix(^*~)
of the current version.
Realated
- read-packages - Reads dependencies of a package.json file