123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- {
- "_args": [
- [
- {
- "raw": "wide-align@^1.1.0",
- "scope": null,
- "escapedName": "wide-align",
- "name": "wide-align",
- "rawSpec": "^1.1.0",
- "spec": ">=1.1.0 <2.0.0",
- "type": "range"
- },
- "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/gauge"
- ]
- ],
- "_from": "wide-align@>=1.1.0 <2.0.0",
- "_id": "wide-align@1.1.2",
- "_inCache": true,
- "_location": "/wide-align",
- "_nodeVersion": "7.7.4",
- "_npmOperationalInternal": {
- "host": "packages-18-east.internal.npmjs.com",
- "tmp": "tmp/wide-align-1.1.2.tgz_1494527486997_0.9166653461288661"
- },
- "_npmUser": {
- "name": "iarna",
- "email": "me@re-becca.org"
- },
- "_npmVersion": "4.6.1",
- "_phantomChildren": {},
- "_requested": {
- "raw": "wide-align@^1.1.0",
- "scope": null,
- "escapedName": "wide-align",
- "name": "wide-align",
- "rawSpec": "^1.1.0",
- "spec": ">=1.1.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/gauge"
- ],
- "_resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz",
- "_shasum": "571e0f1b0604636ebc0dfc21b0339bbe31341710",
- "_shrinkwrap": null,
- "_spec": "wide-align@^1.1.0",
- "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/gauge",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org",
- "url": "http://re-becca.org/"
- },
- "bugs": {
- "url": "https://github.com/iarna/wide-align/issues"
- },
- "dependencies": {
- "string-width": "^1.0.2"
- },
- "description": "A wide-character aware text alignment function for use on the console or with fixed width fonts.",
- "devDependencies": {
- "tap": "^10.3.2"
- },
- "directories": {},
- "dist": {
- "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==",
- "shasum": "571e0f1b0604636ebc0dfc21b0339bbe31341710",
- "tarball": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz"
- },
- "files": [
- "align.js"
- ],
- "gitHead": "f904295d03f73ddce10c2c1b0808513ebb5525c6",
- "homepage": "https://github.com/iarna/wide-align#readme",
- "keywords": [
- "wide",
- "double",
- "unicode",
- "cjkv",
- "pad",
- "align"
- ],
- "license": "ISC",
- "main": "align.js",
- "maintainers": [
- {
- "name": "iarna",
- "email": "me@re-becca.org"
- }
- ],
- "name": "wide-align",
- "optionalDependencies": {},
- "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",
- "readmeFilename": "README.md",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/wide-align.git"
- },
- "scripts": {
- "test": "tap --coverage test/*.js",
- "version": "perl -pi -e 's/^( \"version\": $ENV{npm_config_node_version}\").*?\",/$1abc\",/' package-lock.json ; git add package-lock.json"
- },
- "version": "1.1.2"
- }
|