Socket
Socket
Sign inDemoInstall

exit-cli

Package Overview
Dependencies
17
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    exit-cli

A nice way to end your command line tool


Version published
Maintainers
1
Install size
477 kB
Created

Readme

Source

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

  • MIT © Saad Irfan
  • Code of Conduct

Keywords

FAQs

Last updated on 01 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc