sure

0.0.3 • Public • Published

sure

Asks you if you are sure. If you are not, it will return an error code. Is useful in scripts where you want a confirmation before executing.

For example if you have a destructive script in package.json (when using && the next command wont be run if current command exits with an error code):

"scripts"{
  "clean": "sure && rm -rf dist",
}
$ npm run clean
Are you sure? [y/n]
...

Can be invoked with your own question and allowed answer:

$ sure --question "Type ok to continue." --yes "ok"
Type ok to continue.
...

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    148
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    148
  • 0.0.2
    0

Package Sidebar

Install

npm i sure

Weekly Downloads

118

Version

0.0.3

License

ISC

Last publish

Collaborators

  • jntn