JSPM

sure

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 232
  • Score
    100M100P100Q88269F
  • License ISC

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.

Package Exports

  • sure

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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