package.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "wrap-ansi@^2.0.0",
  6. "scope": null,
  7. "escapedName": "wrap-ansi",
  8. "name": "wrap-ansi",
  9. "rawSpec": "^2.0.0",
  10. "spec": ">=2.0.0 <3.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/cliui"
  14. ]
  15. ],
  16. "_from": "wrap-ansi@>=2.0.0 <3.0.0",
  17. "_id": "wrap-ansi@2.1.0",
  18. "_inCache": true,
  19. "_location": "/wrap-ansi",
  20. "_nodeVersion": "4.6.2",
  21. "_npmOperationalInternal": {
  22. "host": "packages-18-east.internal.npmjs.com",
  23. "tmp": "tmp/wrap-ansi-2.1.0.tgz_1480440082575_0.23112521297298372"
  24. },
  25. "_npmUser": {
  26. "name": "sindresorhus",
  27. "email": "sindresorhus@gmail.com"
  28. },
  29. "_npmVersion": "2.15.11",
  30. "_phantomChildren": {},
  31. "_requested": {
  32. "raw": "wrap-ansi@^2.0.0",
  33. "scope": null,
  34. "escapedName": "wrap-ansi",
  35. "name": "wrap-ansi",
  36. "rawSpec": "^2.0.0",
  37. "spec": ">=2.0.0 <3.0.0",
  38. "type": "range"
  39. },
  40. "_requiredBy": [
  41. "/cliui"
  42. ],
  43. "_resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
  44. "_shasum": "d8fc3d284dd05794fe84973caecdd1cf824fdd85",
  45. "_shrinkwrap": null,
  46. "_spec": "wrap-ansi@^2.0.0",
  47. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/cliui",
  48. "author": {
  49. "name": "Sindre Sorhus",
  50. "email": "sindresorhus@gmail.com",
  51. "url": "sindresorhus.com"
  52. },
  53. "bugs": {
  54. "url": "https://github.com/chalk/wrap-ansi/issues"
  55. },
  56. "dependencies": {
  57. "string-width": "^1.0.1",
  58. "strip-ansi": "^3.0.1"
  59. },
  60. "description": "Wordwrap a string with ANSI escape codes",
  61. "devDependencies": {
  62. "ava": "^0.16.0",
  63. "chalk": "^1.1.0",
  64. "coveralls": "^2.11.4",
  65. "has-ansi": "^2.0.0",
  66. "nyc": "^6.2.1",
  67. "strip-ansi": "^3.0.0",
  68. "xo": "*"
  69. },
  70. "directories": {},
  71. "dist": {
  72. "shasum": "d8fc3d284dd05794fe84973caecdd1cf824fdd85",
  73. "tarball": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz"
  74. },
  75. "engines": {
  76. "node": ">=0.10.0"
  77. },
  78. "files": [
  79. "index.js"
  80. ],
  81. "gitHead": "a731af5a3461d92f2af302e81e05ea698a3c8c1a",
  82. "homepage": "https://github.com/chalk/wrap-ansi#readme",
  83. "keywords": [
  84. "wrap",
  85. "break",
  86. "wordwrap",
  87. "wordbreak",
  88. "linewrap",
  89. "ansi",
  90. "styles",
  91. "color",
  92. "colour",
  93. "colors",
  94. "terminal",
  95. "console",
  96. "cli",
  97. "string",
  98. "tty",
  99. "escape",
  100. "formatting",
  101. "rgb",
  102. "256",
  103. "shell",
  104. "xterm",
  105. "log",
  106. "logging",
  107. "command-line",
  108. "text"
  109. ],
  110. "license": "MIT",
  111. "maintainers": [
  112. {
  113. "name": "Sindre Sorhus",
  114. "email": "sindresorhus@gmail.com",
  115. "url": "sindresorhus.com"
  116. },
  117. {
  118. "name": "Joshua Appelman",
  119. "email": "jappelman@xebia.com",
  120. "url": "jbnicolai.com"
  121. },
  122. {
  123. "name": "JD Ballard",
  124. "email": "i.am.qix@gmail.com",
  125. "url": "github.com/qix-"
  126. },
  127. {
  128. "name": "Benjamin Coe",
  129. "email": "ben@npmjs.com",
  130. "url": "github.com/bcoe"
  131. }
  132. ],
  133. "name": "wrap-ansi",
  134. "optionalDependencies": {},
  135. "readme": "# wrap-ansi [![Build Status](https://travis-ci.org/chalk/wrap-ansi.svg?branch=master)](https://travis-ci.org/chalk/wrap-ansi) [![Coverage Status](https://coveralls.io/repos/github/chalk/wrap-ansi/badge.svg?branch=master)](https://coveralls.io/github/chalk/wrap-ansi?branch=master)\n\n> Wordwrap a string with [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)\n\n\n## Install\n\n```\n$ npm install --save wrap-ansi\n```\n\n\n## Usage\n\n```js\nconst chalk = require('chalk');\nconst wrapAnsi = require('wrap-ansi');\n\nconst input = 'The quick brown ' + chalk.red('fox jumped over ') +\n\t'the lazy ' + chalk.green('dog and then ran away with the unicorn.');\n\nconsole.log(wrapAnsi(input, 20));\n```\n\n<img width=\"331\" src=\"screenshot.png\">\n\n\n## API\n\n### wrapAnsi(input, columns, [options])\n\nWrap words to the specified column width.\n\n#### input\n\nType: `string`\n\nString with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).\n\n#### columns\n\nType: `number`\n\nNumber of columns to wrap the text to.\n\n#### options\n\n##### hard\n\nType: `boolean`<br>\nDefault: `false`\n\nBy default the wrap is soft, meaning long words may extend past the column width. Setting this to `true` will make it hard wrap at the column width.\n\n##### wordWrap\n\nType: `boolean`<br>\nDefault: `true`\n\nBy default, an attempt is made to split words at spaces, ensuring that they don't extend past the configured columns. If wordWrap is `false`, each column will instead be completely filled splitting words as necessary.\n\n\n## Related\n\n- [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes\n- [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal\n- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right\n- [jsesc](https://github.com/mathiasbynens/jsesc) - Generate ASCII-only output from Unicode strings. Useful for creating test fixtures.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
  136. "readmeFilename": "readme.md",
  137. "repository": {
  138. "type": "git",
  139. "url": "git+https://github.com/chalk/wrap-ansi.git"
  140. },
  141. "scripts": {
  142. "coveralls": "nyc report --reporter=text-lcov | coveralls",
  143. "test": "xo && nyc ava"
  144. },
  145. "version": "2.1.0"
  146. }