Fast-outdated
December 20, 2025 ยท View on GitHub
Fast and Programmatically npm outdated --json implementation that use pacote to achieve similar result.
Requirements
- Node.js v24 or higher
Getting Started
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i fast-outdated
# or
$ yarn add fast-outdated
Usage example
import { outdated } from "fast-outdated";
await outdated(void 0, { devDependencies: true })
API
export interface PackageUpdate {
wanted: string;
current: string;
latest: string;
location: string;
}
export interface OutdatedOptions {
devDependencies?: boolean;
token?: string;
}
outdated(cwd?: string, options?: OutdatedOptions): Promise< Record< string, PackageUpdate > >
Will give you equivalent result that the command npm outdated --json. The default cwd value will be equal to process.cwd().
Options:
| name | default value | description |
|---|---|---|
| devDependencies | false | Include devDependencies |
| token | undefined | npm token for private packages |
License
MIT