@whitetrefoil/check-dependencies
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Check Dependencies

A simple lib to check node / npm / package dependencies.

I create this for myself to ensure all teammates will upgrade their node / npm packages during development.

Important

If your code isn't targeting the latest syntax spec of JS / ES, please use something like babel to transfer this library.

Usage

import check from '@whitetrefoil/check-dependencies'

check()
  .then((isOk) => {
    if (isOk !== true) {
      // The lib should already print enough logs automatically.
      // So don't need to print them again.
      process.exit(-1)
    }
  }, (err) => {
    // Shouldn't reach, handle UNEXPECTED error here.
  })

Changelog & Roadmap

v0.1.2

  • Use Chalk to make the logs louder.

v0.1.1

  • Fix wrong info in README.

v0.1.0

  • Initial release.

Readme

Keywords

none

Package Sidebar

Install

npm i @whitetrefoil/check-dependencies

Weekly Downloads

0

Version

0.1.2

License

CC0-1.0

Unpacked Size

34.9 kB

Total Files

15

Last publish

Collaborators

  • whitetrefoil