Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

exit-cli

msaaddev42MIT1.0.3

A nice way to end your command line tool

command line tool, cli, footer, cli exit, Saad Irfan, msaaddev, nodejs cli, update check, notify update

readme

image

⚡️ exit-cli

version license downloads

A nice way to exit your command-line tools.

Features

  • Adds a nice exit message in your CLI using your repo and twitter link.
  • Notify users if a CLI update is available

Install

# install the package
npm install exit-cli

API

  • github (required)
  • twitter (required)
  • pkgJSON (optional) Add this if you want the package to notify for CLI updates

Usage

  • Just display the exit message `js const end = require('exit-cli');

// without package.json file await end({ github: https://github.com/msaaddev/exit-cli, twitter: https://twitter.com/msaaddev })


- Also notify the user if an update is available for the CLI

```js
const end = require('exit-cli');
const packageJSON = require('./package.json');

// with package.json file
await end({
    github: `https://github.com/msaaddev/exit-cli`,
    twitter: `https://twitter.com/msaaddev`,
    pkgJSON: packageJSON
})

🔑 License & Conduct

changelog

Changes across different version of exit-cli

v1.0.0

  • Notify users if a CLI update is available
  • Adds a nice exit message in your CLI using your repo and twitter link.