0.7.0 • Published 25 days ago

@keqingrong/npm-apis v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

@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:

0.7.0

25 days ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago