package.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "cliui@^3.2.0",
  6. "scope": null,
  7. "escapedName": "cliui",
  8. "name": "cliui",
  9. "rawSpec": "^3.2.0",
  10. "spec": ">=3.2.0 <4.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs"
  14. ]
  15. ],
  16. "_from": "cliui@>=3.2.0 <4.0.0",
  17. "_id": "cliui@3.2.0",
  18. "_inCache": true,
  19. "_location": "/cliui",
  20. "_nodeVersion": "5.1.0",
  21. "_npmOperationalInternal": {
  22. "host": "packages-12-west.internal.npmjs.com",
  23. "tmp": "tmp/cliui-3.2.0.tgz_1460342854008_0.8861493801232427"
  24. },
  25. "_npmUser": {
  26. "name": "bcoe",
  27. "email": "ben@npmjs.com"
  28. },
  29. "_npmVersion": "3.3.12",
  30. "_phantomChildren": {},
  31. "_requested": {
  32. "raw": "cliui@^3.2.0",
  33. "scope": null,
  34. "escapedName": "cliui",
  35. "name": "cliui",
  36. "rawSpec": "^3.2.0",
  37. "spec": ">=3.2.0 <4.0.0",
  38. "type": "range"
  39. },
  40. "_requiredBy": [
  41. "/yargs"
  42. ],
  43. "_resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz",
  44. "_shasum": "120601537a916d29940f934da3b48d585a39213d",
  45. "_shrinkwrap": null,
  46. "_spec": "cliui@^3.2.0",
  47. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/yargs",
  48. "author": {
  49. "name": "Ben Coe",
  50. "email": "ben@npmjs.com"
  51. },
  52. "bugs": {
  53. "url": "https://github.com/yargs/cliui/issues"
  54. },
  55. "config": {
  56. "blanket": {
  57. "pattern": [
  58. "index.js"
  59. ],
  60. "data-cover-never": [
  61. "node_modules",
  62. "test"
  63. ],
  64. "output-reporter": "spec"
  65. }
  66. },
  67. "dependencies": {
  68. "string-width": "^1.0.1",
  69. "strip-ansi": "^3.0.1",
  70. "wrap-ansi": "^2.0.0"
  71. },
  72. "description": "easily create complex multi-column command-line-interfaces",
  73. "devDependencies": {
  74. "chai": "^3.5.0",
  75. "chalk": "^1.1.2",
  76. "coveralls": "^2.11.8",
  77. "mocha": "^2.4.5",
  78. "nyc": "^6.4.0",
  79. "standard": "^6.0.8",
  80. "standard-version": "^2.1.2"
  81. },
  82. "directories": {},
  83. "dist": {
  84. "shasum": "120601537a916d29940f934da3b48d585a39213d",
  85. "tarball": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz"
  86. },
  87. "files": [
  88. "index.js"
  89. ],
  90. "gitHead": "75d62e9dfa77a0e0a9c3ac3b96b02baa294142ce",
  91. "homepage": "https://github.com/yargs/cliui#readme",
  92. "keywords": [
  93. "cli",
  94. "command-line",
  95. "layout",
  96. "design",
  97. "console",
  98. "wrap",
  99. "table"
  100. ],
  101. "license": "ISC",
  102. "main": "index.js",
  103. "maintainers": [
  104. {
  105. "name": "bcoe",
  106. "email": "ben@npmjs.com"
  107. }
  108. ],
  109. "name": "cliui",
  110. "optionalDependencies": {},
  111. "readme": "# cliui\n\n[![Build Status](https://travis-ci.org/yargs/cliui.svg)](https://travis-ci.org/yargs/cliui)\n[![Coverage Status](https://coveralls.io/repos/yargs/cliui/badge.svg?branch=)](https://coveralls.io/r/yargs/cliui?branch=)\n[![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui)\n[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n\neasily create complex multi-column command-line-interfaces.\n\n## Example\n\n```js\nvar ui = require('cliui')({\n width: 80\n})\n\nui.div('Usage: $0 [command] [options]')\n\nui.div({\n text: 'Options:',\n padding: [2, 0, 2, 0]\n})\n\nui.div(\n {\n text: \"-f, --file\",\n width: 20,\n padding: [0, 4, 0, 4]\n },\n {\n text: \"the file to load.\" +\n chalk.green(\"(if this description is long it wraps).\")\n ,\n width: 20\n },\n {\n text: chalk.red(\"[required]\"),\n align: 'right'\n }\n)\n\nconsole.log(ui.toString())\n```\n\n<img width=\"500\" src=\"screenshot.png\">\n\n## Layout DSL\n\ncliui exposes a simple layout DSL:\n\nIf you create a single `ui.row`, passing a string rather than an\nobject:\n\n* `\\n`: characters will be interpreted as new rows.\n* `\\t`: characters will be interpreted as new columns.\n* `\\s`: characters will be interpreted as padding.\n\n**as an example...**\n\n```js\nvar ui = require('./')({\n width: 60\n})\n\nui.div(\n 'Usage: node ./bin/foo.js\\n' +\n ' <regex>\\t provide a regex\\n' +\n ' <glob>\\t provide a glob\\t [required]'\n)\n\nconsole.log(ui.toString())\n```\n\n**will output:**\n\n```shell\nUsage: node ./bin/foo.js\n <regex> provide a regex\n <glob> provide a glob [required]\n```\n\n## Methods\n\n```js\ncliui = require('cliui')\n```\n\n### cliui({width: integer})\n\nSpecify the maximum width of the UI being generated.\n\n### cliui({wrap: boolean})\n\nEnable or disable the wrapping of text in a column.\n\n### cliui.div(column, column, column)\n\nCreate a row with any number of columns, a column\ncan either be a string, or an object with the following\noptions:\n\n* **width:** the width of a column.\n* **align:** alignment, `right` or `center`.\n* **padding:** `[top, right, bottom, left]`.\n* **border:** should a border be placed around the div?\n\n### cliui.span(column, column, column)\n\nSimilar to `div`, except the next row will be appended without\na new line being created.\n",
  112. "readmeFilename": "README.md",
  113. "repository": {
  114. "type": "git",
  115. "url": "git+ssh://git@github.com/yargs/cliui.git"
  116. },
  117. "scripts": {
  118. "coverage": "nyc --reporter=text-lcov mocha | coveralls",
  119. "pretest": "standard",
  120. "test": "nyc mocha",
  121. "version": "standard-version"
  122. },
  123. "standard": {
  124. "ignore": [
  125. "**/example/**"
  126. ],
  127. "globals": [
  128. "it"
  129. ]
  130. },
  131. "version": "3.2.0"
  132. }