Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/ansi-align.json

raw
1 {
2 "_id": "ansi-align",
3 "_rev": "8-9f489e031c2695fe462919484002cde8",
4 "name": "ansi-align",
5 "description": "align-text with ANSI support for CLIs",
6 "dist-tags": {
7 "latest": "3.0.0"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "ansi-align",
12 "version": "1.0.0",
13 "description": "align-text with ANSI support for CLIs",
14 "main": "index.js",
15 "scripts": {
16 "pretest": "standard",
17 "test": "nyc ava",
18 "coverage": "nyc report --reporter=text-lcov | coveralls",
19 "release": "standard-version"
20 },
21 "files": [
22 "index.js"
23 ],
24 "repository": {
25 "type": "git",
26 "url": "git+https://github.com/nexdrew/ansi-align.git"
27 },
28 "keywords": [
29 "ansi",
30 "align",
31 "cli",
32 "center",
33 "pad"
34 ],
35 "author": {
36 "name": "nexdrew"
37 },
38 "license": "ISC",
39 "bugs": {
40 "url": "https://github.com/nexdrew/ansi-align/issues"
41 },
42 "homepage": "https://github.com/nexdrew/ansi-align#readme",
43 "dependencies": {
44 "string-width": "^1.0.1"
45 },
46 "devDependencies": {
47 "ava": "^0.14.0",
48 "chalk": "^1.1.3",
49 "coveralls": "^2.11.9",
50 "nyc": "^6.4.0",
51 "standard": "^6.0.8",
52 "standard-version": "^2.1.2"
53 },
54 "gitHead": "cbe98690cf12574556c29031dcbbcd65b7bf1742",
55 "_id": "[email protected]",
56 "_shasum": "49d9b2119fc11b00447020f8e00cc57fbe873ecc",
57 "_from": ".",
58 "_npmVersion": "3.8.8",
59 "_nodeVersion": "5.11.0",
60 "_npmUser": {
61 "name": "nexdrew",
62 "email": "[email protected]"
63 },
64 "dist": {
65 "shasum": "49d9b2119fc11b00447020f8e00cc57fbe873ecc",
66 "tarball": "https://registry.npmjs.org/ansi-align/-/ansi-align-1.0.0.tgz"
67 },
68 "maintainers": [
69 {
70 "name": "nexdrew",
71 "email": "[email protected]"
72 }
73 ],
74 "_npmOperationalInternal": {
75 "host": "packages-16-east.internal.npmjs.com",
76 "tmp": "tmp/ansi-align-1.0.0.tgz_1462038200263_0.3248008810915053"
77 },
78 "directories": {}
79 },
80 "1.1.0": {
81 "name": "ansi-align",
82 "version": "1.1.0",
83 "description": "align-text with ANSI support for CLIs",
84 "main": "index.js",
85 "scripts": {
86 "pretest": "standard",
87 "test": "nyc ava",
88 "coverage": "nyc report --reporter=text-lcov | coveralls",
89 "release": "standard-version"
90 },
91 "files": [
92 "index.js"
93 ],
94 "repository": {
95 "type": "git",
96 "url": "git+https://github.com/nexdrew/ansi-align.git"
97 },
98 "keywords": [
99 "ansi",
100 "align",
101 "cli",
102 "center",
103 "pad"
104 ],
105 "author": {
106 "name": "nexdrew"
107 },
108 "license": "ISC",
109 "bugs": {
110 "url": "https://github.com/nexdrew/ansi-align/issues"
111 },
112 "homepage": "https://github.com/nexdrew/ansi-align#readme",
113 "dependencies": {
114 "string-width": "^1.0.1"
115 },
116 "devDependencies": {
117 "ava": "^0.15.2",
118 "chalk": "^1.1.3",
119 "coveralls": "^2.11.9",
120 "nyc": "^6.4.4",
121 "standard": "^7.1.2",
122 "standard-version": "^2.3.0"
123 },
124 "gitHead": "839c4e214a5690d7463dda32cf76d2ac15826f7a",
125 "_id": "[email protected]",
126 "_shasum": "2f0c1658829739add5ebb15e6b0c6e3423f016ba",
127 "_from": ".",
128 "_npmVersion": "3.8.8",
129 "_nodeVersion": "5.11.0",
130 "_npmUser": {
131 "name": "nexdrew",
132 "email": "[email protected]"
133 },
134 "dist": {
135 "shasum": "2f0c1658829739add5ebb15e6b0c6e3423f016ba",
136 "tarball": "https://registry.npmjs.org/ansi-align/-/ansi-align-1.1.0.tgz"
137 },
138 "maintainers": [
139 {
140 "name": "nexdrew",
141 "email": "[email protected]"
142 }
143 ],
144 "_npmOperationalInternal": {
145 "host": "packages-16-east.internal.npmjs.com",
146 "tmp": "tmp/ansi-align-1.1.0.tgz_1465244078324_0.3411616289522499"
147 },
148 "directories": {}
149 },
150 "2.0.0": {
151 "name": "ansi-align",
152 "version": "2.0.0",
153 "description": "align-text with ANSI support for CLIs",
154 "main": "index.js",
155 "scripts": {
156 "pretest": "standard",
157 "test": "nyc ava",
158 "coverage": "nyc report --reporter=text-lcov | coveralls",
159 "release": "standard-version"
160 },
161 "files": [
162 "index.js"
163 ],
164 "repository": {
165 "type": "git",
166 "url": "git+https://github.com/nexdrew/ansi-align.git"
167 },
168 "keywords": [
169 "ansi",
170 "align",
171 "cli",
172 "center",
173 "pad"
174 ],
175 "author": {
176 "name": "nexdrew"
177 },
178 "license": "ISC",
179 "bugs": {
180 "url": "https://github.com/nexdrew/ansi-align/issues"
181 },
182 "homepage": "https://github.com/nexdrew/ansi-align#readme",
183 "dependencies": {
184 "string-width": "^2.0.0"
185 },
186 "devDependencies": {
187 "ava": "^0.19.1",
188 "chalk": "^1.1.3",
189 "coveralls": "^2.13.1",
190 "nyc": "^10.3.0",
191 "standard": "^10.0.2",
192 "standard-version": "^4.0.0"
193 },
194 "gitHead": "b27d6251ee7b22c7350e4c39219283e3e0fa735e",
195 "_id": "[email protected]",
196 "_shasum": "c36aeccba563b89ceb556f3690f0b1d9e3547f7f",
197 "_from": ".",
198 "_npmVersion": "4.2.0",
199 "_nodeVersion": "7.9.0",
200 "_npmUser": {
201 "name": "nexdrew",
202 "email": "[email protected]"
203 },
204 "dist": {
205 "shasum": "c36aeccba563b89ceb556f3690f0b1d9e3547f7f",
206 "tarball": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz"
207 },
208 "maintainers": [
209 {
210 "name": "nexdrew",
211 "email": "[email protected]"
212 }
213 ],
214 "_npmOperationalInternal": {
215 "host": "packages-18-east.internal.npmjs.com",
216 "tmp": "tmp/ansi-align-2.0.0.tgz_1493673296356_0.4257998722605407"
217 },
218 "directories": {}
219 },
220 "3.0.0": {
221 "name": "ansi-align",
222 "version": "3.0.0",
223 "description": "align-text with ANSI support for CLIs",
224 "main": "index.js",
225 "scripts": {
226 "pretest": "standard",
227 "test": "nyc ava",
228 "coverage": "nyc report --reporter=text-lcov | coveralls",
229 "release": "standard-version"
230 },
231 "repository": {
232 "type": "git",
233 "url": "git+https://github.com/nexdrew/ansi-align.git"
234 },
235 "keywords": [
236 "ansi",
237 "align",
238 "cli",
239 "center",
240 "pad"
241 ],
242 "author": {
243 "name": "nexdrew"
244 },
245 "license": "ISC",
246 "bugs": {
247 "url": "https://github.com/nexdrew/ansi-align/issues"
248 },
249 "homepage": "https://github.com/nexdrew/ansi-align#readme",
250 "dependencies": {
251 "string-width": "^3.0.0"
252 },
253 "devDependencies": {
254 "ava": "^1.0.1",
255 "chalk": "^2.4.1",
256 "coveralls": "^3.0.2",
257 "nyc": "^13.1.0",
258 "standard": "^12.0.1",
259 "standard-version": "^4.4.0"
260 },
261 "gitHead": "7ed8748da479f9030d8036240638d5f8a56200a7",
262 "_id": "[email protected]",
263 "_npmVersion": "6.5.0",
264 "_nodeVersion": "11.4.0",
265 "_npmUser": {
266 "name": "nexdrew",
267 "email": "[email protected]"
268 },
269 "dist": {
270 "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==",
271 "shasum": "b536b371cf687caaef236c18d3e21fe3797467cb",
272 "tarball": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz",
273 "fileCount": 5,
274 "unpackedSize": 7371,
275 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcF8bECRA9TVsSAnZWagAActcP/04DbqH5Fii8UkBGb/I/\nCrrW4cJtxgCB/W9xhuJ5gBbjCmat89HKBFUFGdE0WJchaWyLzAZW2LPr92Hu\n3TmYmS/4YmVPyYJBHVrv8qD2Un7YQKgd3jKie8degZJg3TxJ6ANfzgLq209X\nZSymATofjz5KgyJRlFuUfCZW1E9PrHZlF/xwNqV+JYto9xHUXgphMvns3+0Z\nzFWH1ciEpkZVsBNH9WpSsJq1u6nH8Og0spTQbpB1v00DLGl09JvyhwSVi+nY\n7SE3drDy3HhQ3JNny+ORUAeeIer115UEumFgLE9sG3U62e8nfq/c2Yc7DJe2\nQhFuHdbQH12kzAPCHsQ9t9a+/TBR84Np9K7MmECsQnBYCOpKCubLoHXQfnnk\nNZcOOeRkahwLyM/BEv8YVx9n3Iy5PaJt33i8xdyx8sKi+Z8DqrjSypr7dQaP\nfGu4V+g4VQndomjIYSlKPHXu2oJXMCwziciAI5H7VgbYJWHYLcL1HzQDKoz/\nxmjyb6QXgSO7c/7zggTCx/bLBDMqPpLPpg+mBzhQokIoaVpU2I2bvU2+Mtyb\nJOTo0NsgO0ri3CyT4gyDE0PXIVv4Ad45vq1fh9rfqwZa9p+GFSOUy/ww/WfA\ngiDv/HfSCG+vXIQDFLodiXMoXLui40jO16sVZzqGN4br1Zo4gHE0gLStanxD\ndk8a\r\n=AMOR\r\n-----END PGP SIGNATURE-----\r\n"
276 },
277 "maintainers": [
278 {
279 "email": "[email protected]",
280 "name": "nexdrew"
281 }
282 ],
283 "directories": {},
284 "_npmOperationalInternal": {
285 "host": "s3://npm-registry-packages",
286 "tmp": "tmp/ansi-align_3.0.0_1545062083396_0.9918253175045062"
287 },
288 "_hasShrinkwrap": false
289 }
290 },
291 "readme": "# ansi-align\n\n> align-text with ANSI support for CLIs\n\n[![Build Status](https://travis-ci.org/nexdrew/ansi-align.svg?branch=master)](https://travis-ci.org/nexdrew/ansi-align)\n[![Coverage Status](https://coveralls.io/repos/github/nexdrew/ansi-align/badge.svg?branch=master)](https://coveralls.io/github/nexdrew/ansi-align?branch=master)\n[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)\n[![Greenkeeper badge](https://badges.greenkeeper.io/nexdrew/ansi-align.svg)](https://greenkeeper.io/)\n\nEasily center- or right- align a block of text, carefully ignoring ANSI escape codes.\n\nE.g. turn this:\n\n<img width=\"281\" alt=\"ansi text block no alignment :(\" src=\"https://cloud.githubusercontent.com/assets/1929625/14937509/7c3076dc-0ed7-11e6-8c16-4f6a4ccc8346.png\">\n\nInto this:\n\n<img width=\"278\" alt=\"ansi text block center aligned!\" src=\"https://cloud.githubusercontent.com/assets/1929625/14937510/7c3ca0b0-0ed7-11e6-8f0a-541ca39b6e0a.png\">\n\n## Install\n\n```sh\nnpm install --save ansi-align\n```\n\n```js\nvar ansiAlign = require('ansi-align')\n```\n\n## API\n\n### `ansiAlign(text, [opts])`\n\nAlign the given text per the line with the greatest [`string-width`](https://github.com/sindresorhus/string-width), returning a new string (or array).\n\n#### Arguments\n\n- `text`: required, string or array\n\n The text to align. If a string is given, it will be split using either the `opts.split` value or `'\\n'` by default. If an array is given, a different array of modified strings will be returned.\n\n- `opts`: optional, object\n\n Options to change behavior, see below.\n\n#### Options\n\n- `opts.align`: string, default `'center'`\n\n The alignment mode. Use `'center'` for center-alignment, `'right'` for right-alignment, or `'left'` for left-alignment. Note that the given `text` is assumed to be left-aligned already, so specifying `align: 'left'` just returns the `text` as is (no-op).\n\n- `opts.split`: string or RegExp, default `'\\n'`\n\n The separator to use when splitting the text. Only used if text is given as a string.\n\n- `opts.pad`: string, default `' '`\n\n The value used to left-pad (prepend to) lines of lesser width. Will be repeated as necessary to adjust alignment to the line with the greatest width.\n\n### `ansiAlign.center(text)`\n\nAlias for `ansiAlign(text, { align: 'center' })`.\n\n### `ansiAlign.right(text)`\n\nAlias for `ansiAlign(text, { align: 'right' })`.\n\n### `ansiAlign.left(text)`\n\nAlias for `ansiAlign(text, { align: 'left' })`, which is a no-op.\n\n## Similar Packages\n\n- [`center-align`](https://github.com/jonschlinkert/center-align): Very close to this package, except it doesn't support ANSI codes.\n- [`left-pad`](https://github.com/camwest/left-pad): Great for left-padding but does not support center alignment or ANSI codes.\n- Pretty much anything by the [chalk](https://github.com/chalk) team\n\n## License\n\nISC © Contributors\n",
292 "maintainers": [
293 {
294 "email": "[email protected]",
295 "name": "nexdrew"
296 }
297 ],
298 "time": {
299 "modified": "2019-01-01T04:41:05.033Z",
300 "created": "2016-04-30T17:43:23.016Z",
301 "1.0.0": "2016-04-30T17:43:23.016Z",
302 "1.1.0": "2016-06-06T20:14:39.942Z",
303 "2.0.0": "2017-05-01T21:14:57.101Z",
304 "3.0.0": "2018-12-17T15:54:43.480Z"
305 },
306 "homepage": "https://github.com/nexdrew/ansi-align#readme",
307 "keywords": [
308 "ansi",
309 "align",
310 "cli",
311 "center",
312 "pad"
313 ],
314 "repository": {
315 "type": "git",
316 "url": "git+https://github.com/nexdrew/ansi-align.git"
317 },
318 "author": {
319 "name": "nexdrew"
320 },
321 "bugs": {
322 "url": "https://github.com/nexdrew/ansi-align/issues"
323 },
324 "license": "ISC",
325 "readmeFilename": "README.md",
326 "users": {
327 "keenwon": true
328 }
329 }