Ohm-Management - Projektarbeit B-ME
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 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # figures [![Build Status: Linux](https://travis-ci.org/sindresorhus/figures.svg?branch=master)](https://travis-ci.org/sindresorhus/figures) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/mb743hl70269be3r/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/figures/branch/master)
  2. > Unicode symbols with Windows CMD fallbacks
  3. [![](screenshot.png)](index.js)
  4. [*and more...*](index.js)
  5. Windows CMD only supports a [limited character set](http://en.wikipedia.org/wiki/Code_page_437).
  6. ## Install
  7. ```
  8. $ npm install --save figures
  9. ```
  10. ## Usage
  11. See the [source](index.js) for supported symbols.
  12. ```js
  13. const figures = require('figures');
  14. console.log(figures('✔︎ check'));
  15. // On real OSes: ✔︎ check
  16. // On Windows: √ check
  17. console.log(figures.tick);
  18. // On real OSes: ✔︎
  19. // On Windows: √
  20. ```
  21. ## API
  22. ### figures(input)
  23. Returns the input with replaced fallback unicode symbols on Windows.
  24. All the below [figures](#figures) are attached to the main export as shown in the example above.
  25. #### input
  26. Type: `string`
  27. String where the unicode symbols will be replaced with fallback symbols depending on the OS.
  28. ## Figures
  29. | Name | Real OSes | Windows |
  30. | ------------------ | :-------: | :-----: |
  31. | tick | ✔ | √ |
  32. | cross | ✖ | × |
  33. | star | ★ | * |
  34. | square | ▇ | █ |
  35. | squareSmall | ◻ | [ ] |
  36. | squareSmallFilled | ◼ | [█] |
  37. | play | ▶ | ► |
  38. | circle | ◯ | ( ) |
  39. | circleFilled | ◉ | (*) |
  40. | circleDotted | ◌ | ( ) |
  41. | circleDouble | ◎ | ( ) |
  42. | circleCircle | ⓞ | (○) |
  43. | circleCross | ⓧ | (×) |
  44. | circlePipe | Ⓘ | (│) |
  45. | circleQuestionMark | ?⃝ | (?) |
  46. | bullet | ● | * |
  47. | dot | ․ | . |
  48. | line | ─ | ─ |
  49. | ellipsis | … | ... |
  50. | pointer | ❯ | > |
  51. | pointerSmall | › | » |
  52. | info | ℹ | i |
  53. | warning | ⚠ | ‼ |
  54. | hamburger | ☰ | ≡ |
  55. | smiley | ㋡ | ☺ |
  56. | mustache | ෴ | ┌─┐ |
  57. | heart | ♥ | ♥ |
  58. | arrowUp | ↑ | ↑ |
  59. | arrowDown | ↓ | ↓ |
  60. | arrowLeft | ← | ← |
  61. | arrowRight | → | → |
  62. | radioOn | ◉ | (*) |
  63. | radioOff | ◯ | ( ) |
  64. | checkboxOn | ☒ | [×] |
  65. | checkboxOff | ☐ | [ ] |
  66. | checkboxCircleOn | ⓧ | (×) |
  67. | checkboxCircleOff | Ⓘ | ( ) |
  68. | questionMarkPrefix | ?⃝ | ? |
  69. | oneHalf | ½ | 1/2 |
  70. | oneThird | ⅓ | 1/3 |
  71. | oneQuarter | ¼ | 1/4 |
  72. | oneFifth | ⅕ | 1/5 |
  73. | oneSixth | ⅙ | 1/6 |
  74. | oneSeventh | ⅐ | 1/7 |
  75. | oneEighth | ⅛ | 1/8 |
  76. | oneNinth | ⅑ | 1/9 |
  77. | oneTenth | ⅒ | 1/10 |
  78. | twoThirds | ⅔ | 2/3 |
  79. | twoFifths | ⅖ | 2/5 |
  80. | threeQuarters | ¾ | 3/4 |
  81. | threeFifths | ⅗ | 3/5 |
  82. | threeEighths | ⅜ | 3/8 |
  83. | fourFifths | ⅘ | 4/5 |
  84. | fiveSixths | ⅚ | 5/6 |
  85. | fiveEighths | ⅝ | 5/8 |
  86. | sevenEighths | ⅞ | 7/8 |
  87. ## Related
  88. - [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels
  89. ## License
  90. MIT © [Sindre Sorhus](https://sindresorhus.com)