@keqingrong/npm-apis
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

@keqingrong/npm-apis (WIP)

npm version

Programmatic APIs for npm

Installation

# npm
npm install @keqingrong/npm-apis

# yarn
yarn add @keqingrong/npm-apis

Usage

import { outdated } from '@keqingrong/npm-apis';

(async () => {
  const result = await outdated(
    {
      json: true,
      long: true
    },
    { cwd: __dirname }
  );
  const outdatedJson = JSON.parse(result);
  console.log(outdatedJson);
})();

APIs

  • install(pkg) Install a package
  • outdated() Check for outdated packages
  • version(release) Bump a package version
  • spawnAsync() Promisified child_process.spawn()

License

MIT © Qingrong Ke

See Also

Official packages from the npm team:

Readme

Keywords

Package Sidebar

Install

npm i @keqingrong/npm-apis

Weekly Downloads

1

Version

0.7.0

License

MIT

Unpacked Size

124 kB

Total Files

19

Last publish

Collaborators

  • dearke