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.markdown 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # object-inspect <sup>[![Version Badge][2]][1]</sup>
  2. string representations of objects in node and the browser
  3. [![github actions][actions-image]][actions-url]
  4. [![coverage][codecov-image]][codecov-url]
  5. [![dependency status][5]][6]
  6. [![dev dependency status][7]][8]
  7. [![License][license-image]][license-url]
  8. [![Downloads][downloads-image]][downloads-url]
  9. [![npm badge][11]][1]
  10. # example
  11. ## circular
  12. ``` js
  13. var inspect = require('object-inspect');
  14. var obj = { a: 1, b: [3,4] };
  15. obj.c = obj;
  16. console.log(inspect(obj));
  17. ```
  18. ## dom element
  19. ``` js
  20. var inspect = require('object-inspect');
  21. var d = document.createElement('div');
  22. d.setAttribute('id', 'beep');
  23. d.innerHTML = '<b>wooo</b><i>iiiii</i>';
  24. console.log(inspect([ d, { a: 3, b : 4, c: [5,6,[7,[8,[9]]]] } ]));
  25. ```
  26. output:
  27. ```
  28. [ <div id="beep">...</div>, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [ ... ] ] ] ] } ]
  29. ```
  30. # methods
  31. ``` js
  32. var inspect = require('object-inspect')
  33. ```
  34. ## var s = inspect(obj, opts={})
  35. Return a string `s` with the string representation of `obj` up to a depth of `opts.depth`.
  36. Additional options:
  37. - `quoteStyle`: must be "single" or "double", if present. Default `'single'` for strings, `'double'` for HTML elements.
  38. - `maxStringLength`: must be `0`, a positive integer, `Infinity`, or `null`, if present. Default `Infinity`.
  39. - `customInspect`: When `true`, a custom inspect method function will be invoked (either undere the `util.inspect.custom` symbol, or the `inspect` property). When the string `'symbol'`, only the symbol method will be invoked. Default `true`.
  40. - `indent`: must be "\t", `null`, or a positive integer. Default `null`.
  41. # install
  42. With [npm](https://npmjs.org) do:
  43. ```
  44. npm install object-inspect
  45. ```
  46. # license
  47. MIT
  48. [1]: https://npmjs.org/package/object-inspect
  49. [2]: https://versionbadg.es/inspect-js/object-inspect.svg
  50. [5]: https://david-dm.org/inspect-js/object-inspect.svg
  51. [6]: https://david-dm.org/inspect-js/object-inspect
  52. [7]: https://david-dm.org/inspect-js/object-inspect/dev-status.svg
  53. [8]: https://david-dm.org/inspect-js/object-inspect#info=devDependencies
  54. [11]: https://nodei.co/npm/object-inspect.png?downloads=true&stars=true
  55. [license-image]: https://img.shields.io/npm/l/object-inspect.svg
  56. [license-url]: LICENSE
  57. [downloads-image]: https://img.shields.io/npm/dm/object-inspect.svg
  58. [downloads-url]: https://npm-stat.com/charts.html?package=object-inspect
  59. [codecov-image]: https://codecov.io/gh/inspect-js/object-inspect/branch/main/graphs/badge.svg
  60. [codecov-url]: https://app.codecov.io/gh/inspect-js/object-inspect/
  61. [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/object-inspect
  62. [actions-url]: https://github.com/inspect-js/object-inspect/actions