Fast-outdated

December 20, 2025 ยท View on GitHub

version Maintenance MIT size Known Vulnerabilities

Fast and Programmatically npm outdated --json implementation that use pacote to achieve similar result.

Requirements

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:

namedefault valuedescription
devDependenciesfalseInclude devDependencies
tokenundefinednpm token for private packages

License

MIT