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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # clean-stack [![Build Status](https://travis-ci.org/sindresorhus/clean-stack.svg?branch=master)](https://travis-ci.org/sindresorhus/clean-stack)
  2. > Clean up error stack traces
  3. Removes the mostly unhelpful internal Node.js entries.
  4. Also works in Electron.
  5. ## Install
  6. ```
  7. $ npm install clean-stack
  8. ```
  9. ## Usage
  10. ```js
  11. const cleanStack = require('clean-stack');
  12. const error = new Error('Missing unicorn');
  13. console.log(error.stack);
  14. /*
  15. Error: Missing unicorn
  16. at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
  17. at Module._compile (module.js:409:26)
  18. at Object.Module._extensions..js (module.js:416:10)
  19. at Module.load (module.js:343:32)
  20. at Function.Module._load (module.js:300:12)
  21. at Function.Module.runMain (module.js:441:10)
  22. at startup (node.js:139:18)
  23. */
  24. console.log(cleanStack(error.stack));
  25. /*
  26. Error: Missing unicorn
  27. at Object.<anonymous> (/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15)
  28. */
  29. ```
  30. ## API
  31. ### cleanStack(stack, [options])
  32. #### stack
  33. Type: `string`
  34. The `stack` property of an `Error`.
  35. #### options
  36. Type: `Object`
  37. ##### pretty
  38. Type: `boolean`<br>
  39. Default: `false`
  40. Prettify the file paths in the stack:
  41. `/Users/sindresorhus/dev/clean-stack/unicorn.js:2:15` → `~/dev/clean-stack/unicorn.js:2:15`
  42. ## Related
  43. - [extrack-stack](https://github.com/sindresorhus/extract-stack) - Extract the actual stack of an error
  44. - [stack-utils](https://github.com/tapjs/stack-utils) - Captures and cleans stack traces
  45. ## License
  46. MIT © [Sindre Sorhus](https://sindresorhus.com)