Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # bail
  2. [![Build][build-badge]][build]
  3. [![Coverage][coverage-badge]][coverage]
  4. [![Downloads][downloads-badge]][downloads]
  5. [![Size][size-badge]][size]
  6. :warning: Throw a given error.
  7. ## Install
  8. [npm][]:
  9. ```sh
  10. npm install bail
  11. ```
  12. ## Use
  13. ```js
  14. var bail = require('bail')
  15. bail()
  16. bail(new Error('failure'))
  17. // Error: failure
  18. // at repl:1:6
  19. // at REPLServer.defaultEval (repl.js:154:27)
  20. // …
  21. ```
  22. ## API
  23. ### `bail([err])`
  24. Throw a given error.
  25. ###### Parameters
  26. * `err` (`Error?`) — Optional error.
  27. ###### Throws
  28. * `Error` — Given error, if any.
  29. ## Related
  30. * [`noop`][noop]
  31. * [`noop2`][noop2]
  32. * [`noop3`][noop3]
  33. ## License
  34. [MIT][license] © [Titus Wormer][author]
  35. <!-- Definitions -->
  36. [build-badge]: https://img.shields.io/travis/wooorm/bail.svg
  37. [build]: https://travis-ci.org/wooorm/bail
  38. [coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/bail.svg
  39. [coverage]: https://codecov.io/github/wooorm/bail
  40. [downloads-badge]: https://img.shields.io/npm/dm/bail.svg
  41. [downloads]: https://www.npmjs.com/package/bail
  42. [size-badge]: https://img.shields.io/bundlephobia/minzip/bail.svg
  43. [size]: https://bundlephobia.com/result?p=bail
  44. [npm]: https://docs.npmjs.com/cli/install
  45. [license]: license
  46. [author]: https://wooorm.com
  47. [noop]: https://www.npmjs.com/package/noop
  48. [noop2]: https://www.npmjs.com/package/noop2
  49. [noop3]: https://www.npmjs.com/package/noop3