package.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "_args": [
  3. [
  4. {
  5. "raw": "wide-align@^1.1.0",
  6. "scope": null,
  7. "escapedName": "wide-align",
  8. "name": "wide-align",
  9. "rawSpec": "^1.1.0",
  10. "spec": ">=1.1.0 <2.0.0",
  11. "type": "range"
  12. },
  13. "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/gauge"
  14. ]
  15. ],
  16. "_from": "wide-align@>=1.1.0 <2.0.0",
  17. "_id": "wide-align@1.1.2",
  18. "_inCache": true,
  19. "_location": "/wide-align",
  20. "_nodeVersion": "7.7.4",
  21. "_npmOperationalInternal": {
  22. "host": "packages-18-east.internal.npmjs.com",
  23. "tmp": "tmp/wide-align-1.1.2.tgz_1494527486997_0.9166653461288661"
  24. },
  25. "_npmUser": {
  26. "name": "iarna",
  27. "email": "me@re-becca.org"
  28. },
  29. "_npmVersion": "4.6.1",
  30. "_phantomChildren": {},
  31. "_requested": {
  32. "raw": "wide-align@^1.1.0",
  33. "scope": null,
  34. "escapedName": "wide-align",
  35. "name": "wide-align",
  36. "rawSpec": "^1.1.0",
  37. "spec": ">=1.1.0 <2.0.0",
  38. "type": "range"
  39. },
  40. "_requiredBy": [
  41. "/gauge"
  42. ],
  43. "_resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz",
  44. "_shasum": "571e0f1b0604636ebc0dfc21b0339bbe31341710",
  45. "_shrinkwrap": null,
  46. "_spec": "wide-align@^1.1.0",
  47. "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/gauge",
  48. "author": {
  49. "name": "Rebecca Turner",
  50. "email": "me@re-becca.org",
  51. "url": "http://re-becca.org/"
  52. },
  53. "bugs": {
  54. "url": "https://github.com/iarna/wide-align/issues"
  55. },
  56. "dependencies": {
  57. "string-width": "^1.0.2"
  58. },
  59. "description": "A wide-character aware text alignment function for use on the console or with fixed width fonts.",
  60. "devDependencies": {
  61. "tap": "^10.3.2"
  62. },
  63. "directories": {},
  64. "dist": {
  65. "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==",
  66. "shasum": "571e0f1b0604636ebc0dfc21b0339bbe31341710",
  67. "tarball": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz"
  68. },
  69. "files": [
  70. "align.js"
  71. ],
  72. "gitHead": "f904295d03f73ddce10c2c1b0808513ebb5525c6",
  73. "homepage": "https://github.com/iarna/wide-align#readme",
  74. "keywords": [
  75. "wide",
  76. "double",
  77. "unicode",
  78. "cjkv",
  79. "pad",
  80. "align"
  81. ],
  82. "license": "ISC",
  83. "main": "align.js",
  84. "maintainers": [
  85. {
  86. "name": "iarna",
  87. "email": "me@re-becca.org"
  88. }
  89. ],
  90. "name": "wide-align",
  91. "optionalDependencies": {},
  92. "readme": "wide-align\n----------\n\nA wide-character aware text alignment function for use in terminals / on the\nconsole.\n\n### Usage\n\n```\nvar align = require('wide-align')\n\n// Note that if you view this on a unicode console, all of the slashes are\n// aligned. This is because on a console, all narrow characters are\n// an en wide and all wide characters are an em. In browsers, this isn't\n// held to and wide characters like \"古\" can be less than two narrow\n// characters even with a fixed width font.\n\nconsole.log(align.center('abc', 10)) // ' abc '\nconsole.log(align.center('古古古', 10)) // ' 古古古 '\nconsole.log(align.left('abc', 10)) // 'abc '\nconsole.log(align.left('古古古', 10)) // '古古古 '\nconsole.log(align.right('abc', 10)) // ' abc'\nconsole.log(align.right('古古古', 10)) // ' 古古古'\n```\n\n### Functions\n\n#### `align.center(str, length)` → `str`\n\nReturns *str* with spaces added to both sides such that that it is *length*\nchars long and centered in the spaces.\n\n#### `align.left(str, length)` → `str`\n\nReturns *str* with spaces to the right such that it is *length* chars long.\n\n### `align.right(str, length)` → `str`\n\nReturns *str* with spaces to the left such that it is *length* chars long.\n\n### Origins\n\nThese functions were originally taken from \n[cliui](https://npmjs.com/package/cliui). Changes include switching to the\nMUCH faster pad generation function from\n[lodash](https://npmjs.com/package/lodash), making center alignment pad\nboth sides and adding left alignment.\n",
  93. "readmeFilename": "README.md",
  94. "repository": {
  95. "type": "git",
  96. "url": "git+https://github.com/iarna/wide-align.git"
  97. },
  98. "scripts": {
  99. "test": "tap --coverage test/*.js",
  100. "version": "perl -pi -e 's/^( \"version\": $ENV{npm_config_node_version}\").*?\",/$1abc\",/' package-lock.json ; git add package-lock.json"
  101. },
  102. "version": "1.1.2"
  103. }