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

4 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # cli-boxes [![Build Status](https://travis-ci.com/sindresorhus/cli-boxes.svg?branch=master)](https://travis-ci.com/github/sindresorhus/cli-boxes)
  2. > Boxes for use in the terminal
  3. The list of boxes is just a [JSON file](boxes.json) and can be used anywhere.
  4. ## Install
  5. ```
  6. $ npm install cli-boxes
  7. ```
  8. ## Usage
  9. ```js
  10. const cliBoxes = require('cli-boxes');
  11. console.log(cliBoxes.single);
  12. /*
  13. {
  14. topLeft: '┌',
  15. topRight: '┐',
  16. bottomRight: '┘',
  17. bottomLeft: '└',
  18. vertical: '│',
  19. horizontal: '─'
  20. }
  21. */
  22. ```
  23. ## API
  24. ### cliBoxes
  25. #### `single`
  26. ```
  27. ┌────┐
  28. │ │
  29. └────┘
  30. ```
  31. #### `double`
  32. ```
  33. ╔════╗
  34. ║ ║
  35. ╚════╝
  36. ```
  37. #### `round`
  38. ```
  39. ╭────╮
  40. │ │
  41. ╰────╯
  42. ```
  43. #### `bold`
  44. ```
  45. ┏━━━━┓
  46. ┃ ┃
  47. ┗━━━━┛
  48. ```
  49. #### `singleDouble`
  50. ```
  51. ╓────╖
  52. ║ ║
  53. ╙────╜
  54. ```
  55. #### `doubleSingle`
  56. ```
  57. ╒════╕
  58. │ │
  59. ╘════╛
  60. ```
  61. #### `classic`
  62. ```
  63. +----+
  64. | |
  65. +----+
  66. ```
  67. ## Related
  68. - [boxen](https://github.com/sindresorhus/boxen) - Create boxes in the terminal
  69. ---
  70. <div align="center">
  71. <b>
  72. <a href="https://tidelift.com/subscription/pkg/npm-cli-boxes?utm_source=npm-cli-boxes&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
  73. </b>
  74. <br>
  75. <sub>
  76. Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
  77. </sub>
  78. </div>