@m4rch/npm-check-updates
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

@m4rch/npm-check-updates

a low-dependency quick tool to update all the dependecies in your package.json

use

cli

$ ncu --help

  Description
    check and update outdated dependencies in your package.json

  Usage
    $ ncu [dir] [options]

  Options
    --semver         respect semantic versioning
    -u, --update     update the package.json file
    -i, --install    automatically install update [only with --update]
    -v, --version    Displays current version
    -h, --help       Displays this message

api

import ncu from "@m4rch/npm-check-updates"

ncu takes 2 arguments

function ncu ( pkg: pkg, options?: options ): Promise<deps>

interface pkg {
	[ key: string ]: string | number | boolean | null | pkg
}

interface options {
	semver?: boolean
}

type deps = dep[]

interface dep {
	name: string, // name of module
	from: "dependency" | "devDependency",
	old: string,  // old version
	new: string   // new version
}

handler

import handler from "@m4rch/npm-check-updates/handler"

Package Sidebar

Install

npm i @m4rch/npm-check-updates

Weekly Downloads

0

Version

0.1.4

License

Unlicense

Unpacked Size

10.9 kB

Total Files

12

Last publish

Collaborators

  • m4rch