@keqingrong/npm-apis
v0.7.0
Published
Programmatic APIs for npm
Downloads
5
Readme
@keqingrong/npm-apis (WIP)
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 packageoutdated()
Check for outdated packagesversion(release)
Bump a package versionspawnAsync()
Promisifiedchild_process.spawn()
License
MIT © Qingrong Ke
See Also
Official packages from the npm team: