| 1 |
{ |
| 2 |
"_id": "align-text", |
| 3 |
"_rev": "16-d23eb231cd03aa3199feeada73bfca27", |
| 4 |
"name": "align-text", |
| 5 |
"description": "Align the text in a string.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.0.2" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.1.0": { |
| 11 |
"name": "align-text", |
| 12 |
"description": "Align the text in a string.", |
| 13 |
"version": "0.1.0", |
| 14 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 15 |
"author": { |
| 16 |
"name": "Jon Schlinkert", |
| 17 |
"url": "https://github.com/jonschlinkert" |
| 18 |
}, |
| 19 |
"repository": { |
| 20 |
"type": "git", |
| 21 |
"url": "git://github.com/jonschlinkert/align-text.git" |
| 22 |
}, |
| 23 |
"bugs": { |
| 24 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 25 |
}, |
| 26 |
"license": { |
| 27 |
"type": "MIT", |
| 28 |
"url": "https://github.com/jonschlinkert/align-text/blob/master/LICENSE" |
| 29 |
}, |
| 30 |
"files": [ |
| 31 |
"index.js" |
| 32 |
], |
| 33 |
"main": "index.js", |
| 34 |
"engines": { |
| 35 |
"node": ">=0.10.0" |
| 36 |
}, |
| 37 |
"scripts": { |
| 38 |
"test": "mocha" |
| 39 |
}, |
| 40 |
"dependencies": { |
| 41 |
"kind-of": "^1.1.0", |
| 42 |
"longest": "^1.0.0", |
| 43 |
"repeat-string": "^1.5.0" |
| 44 |
}, |
| 45 |
"devDependencies": { |
| 46 |
"mocha": "*", |
| 47 |
"should": "*" |
| 48 |
}, |
| 49 |
"_id": "[email protected]", |
| 50 |
"_shasum": "f6f56827796073f8d4cd76f09013dfa932e7d4de", |
| 51 |
"_from": ".", |
| 52 |
"_npmVersion": "2.5.1", |
| 53 |
"_nodeVersion": "0.12.0", |
| 54 |
"_npmUser": { |
| 55 |
"name": "jonschlinkert", |
| 56 |
"email": "[email protected]" |
| 57 |
}, |
| 58 |
"maintainers": [ |
| 59 |
{ |
| 60 |
"name": "jonschlinkert", |
| 61 |
"email": "[email protected]" |
| 62 |
} |
| 63 |
], |
| 64 |
"dist": { |
| 65 |
"shasum": "f6f56827796073f8d4cd76f09013dfa932e7d4de", |
| 66 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-0.1.0.tgz" |
| 67 |
}, |
| 68 |
"directories": {} |
| 69 |
}, |
| 70 |
"0.1.1": { |
| 71 |
"name": "align-text", |
| 72 |
"description": "Align the text in a string.", |
| 73 |
"version": "0.1.1", |
| 74 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 75 |
"author": { |
| 76 |
"name": "Jon Schlinkert", |
| 77 |
"url": "https://github.com/jonschlinkert" |
| 78 |
}, |
| 79 |
"repository": { |
| 80 |
"type": "git", |
| 81 |
"url": "git://github.com/jonschlinkert/align-text.git" |
| 82 |
}, |
| 83 |
"bugs": { |
| 84 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 85 |
}, |
| 86 |
"license": { |
| 87 |
"type": "MIT", |
| 88 |
"url": "https://github.com/jonschlinkert/align-text/blob/master/LICENSE" |
| 89 |
}, |
| 90 |
"files": [ |
| 91 |
"index.js" |
| 92 |
], |
| 93 |
"main": "index.js", |
| 94 |
"engines": { |
| 95 |
"node": ">=0.10.0" |
| 96 |
}, |
| 97 |
"scripts": { |
| 98 |
"test": "mocha" |
| 99 |
}, |
| 100 |
"dependencies": { |
| 101 |
"kind-of": "^1.1.0", |
| 102 |
"longest": "^1.0.0", |
| 103 |
"repeat-string": "^1.5.0" |
| 104 |
}, |
| 105 |
"devDependencies": { |
| 106 |
"mocha": "*", |
| 107 |
"should": "*" |
| 108 |
}, |
| 109 |
"keywords": [ |
| 110 |
"align", |
| 111 |
"align-center", |
| 112 |
"alignment", |
| 113 |
"center", |
| 114 |
"center-align", |
| 115 |
"indent", |
| 116 |
"pad", |
| 117 |
"padding", |
| 118 |
"right", |
| 119 |
"right-align", |
| 120 |
"text", |
| 121 |
"typography" |
| 122 |
], |
| 123 |
"gitHead": "a9e730143b6232af063e0a0f436364ebe9151ede", |
| 124 |
"_id": "[email protected]", |
| 125 |
"_shasum": "576a56ded8fca0a9840c05064a0e93f35771b29f", |
| 126 |
"_from": ".", |
| 127 |
"_npmVersion": "2.5.1", |
| 128 |
"_nodeVersion": "0.12.0", |
| 129 |
"_npmUser": { |
| 130 |
"name": "jonschlinkert", |
| 131 |
"email": "[email protected]" |
| 132 |
}, |
| 133 |
"maintainers": [ |
| 134 |
{ |
| 135 |
"name": "jonschlinkert", |
| 136 |
"email": "[email protected]" |
| 137 |
} |
| 138 |
], |
| 139 |
"dist": { |
| 140 |
"shasum": "576a56ded8fca0a9840c05064a0e93f35771b29f", |
| 141 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-0.1.1.tgz" |
| 142 |
}, |
| 143 |
"directories": {} |
| 144 |
}, |
| 145 |
"0.1.2": { |
| 146 |
"name": "align-text", |
| 147 |
"description": "Align the text in a string.", |
| 148 |
"version": "0.1.2", |
| 149 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 150 |
"author": { |
| 151 |
"name": "Jon Schlinkert", |
| 152 |
"url": "https://github.com/jonschlinkert" |
| 153 |
}, |
| 154 |
"repository": { |
| 155 |
"type": "git", |
| 156 |
"url": "git://github.com/jonschlinkert/align-text.git" |
| 157 |
}, |
| 158 |
"bugs": { |
| 159 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 160 |
}, |
| 161 |
"license": "MIT", |
| 162 |
"files": [ |
| 163 |
"index.js" |
| 164 |
], |
| 165 |
"main": "index.js", |
| 166 |
"engines": { |
| 167 |
"node": ">=0.10.0" |
| 168 |
}, |
| 169 |
"scripts": { |
| 170 |
"test": "mocha" |
| 171 |
}, |
| 172 |
"dependencies": { |
| 173 |
"kind-of": "^2.0.0", |
| 174 |
"longest": "^1.0.1", |
| 175 |
"repeat-string": "^1.5.2" |
| 176 |
}, |
| 177 |
"devDependencies": { |
| 178 |
"mocha": "*", |
| 179 |
"should": "*", |
| 180 |
"word-wrap": "^1.0.3" |
| 181 |
}, |
| 182 |
"keywords": [ |
| 183 |
"align", |
| 184 |
"align-center", |
| 185 |
"alignment", |
| 186 |
"center", |
| 187 |
"center-align", |
| 188 |
"indent", |
| 189 |
"pad", |
| 190 |
"padding", |
| 191 |
"right", |
| 192 |
"right-align", |
| 193 |
"text", |
| 194 |
"typography" |
| 195 |
], |
| 196 |
"gitHead": "b6149117f9d494fa5e31241b7d211e8f24b6c351", |
| 197 |
"_id": "[email protected]", |
| 198 |
"_shasum": "a926fa1550d23d75336fca03b6746a685739353a", |
| 199 |
"_from": ".", |
| 200 |
"_npmVersion": "2.10.1", |
| 201 |
"_nodeVersion": "0.12.4", |
| 202 |
"_npmUser": { |
| 203 |
"name": "jonschlinkert", |
| 204 |
"email": "[email protected]" |
| 205 |
}, |
| 206 |
"maintainers": [ |
| 207 |
{ |
| 208 |
"name": "jonschlinkert", |
| 209 |
"email": "[email protected]" |
| 210 |
} |
| 211 |
], |
| 212 |
"dist": { |
| 213 |
"shasum": "a926fa1550d23d75336fca03b6746a685739353a", |
| 214 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-0.1.2.tgz" |
| 215 |
}, |
| 216 |
"directories": {} |
| 217 |
}, |
| 218 |
"0.1.3": { |
| 219 |
"name": "align-text", |
| 220 |
"description": "Align the text in a string.", |
| 221 |
"version": "0.1.3", |
| 222 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 223 |
"author": { |
| 224 |
"name": "Jon Schlinkert", |
| 225 |
"url": "https://github.com/jonschlinkert" |
| 226 |
}, |
| 227 |
"repository": { |
| 228 |
"type": "git", |
| 229 |
"url": "git://github.com/jonschlinkert/align-text.git" |
| 230 |
}, |
| 231 |
"bugs": { |
| 232 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 233 |
}, |
| 234 |
"license": "MIT", |
| 235 |
"files": [ |
| 236 |
"index.js" |
| 237 |
], |
| 238 |
"main": "index.js", |
| 239 |
"engines": { |
| 240 |
"node": ">=0.10.0" |
| 241 |
}, |
| 242 |
"scripts": { |
| 243 |
"test": "mocha" |
| 244 |
}, |
| 245 |
"dependencies": { |
| 246 |
"kind-of": "^2.0.0", |
| 247 |
"longest": "^1.0.1", |
| 248 |
"repeat-string": "^1.5.2" |
| 249 |
}, |
| 250 |
"devDependencies": { |
| 251 |
"mocha": "*", |
| 252 |
"should": "*", |
| 253 |
"word-wrap": "^1.0.3" |
| 254 |
}, |
| 255 |
"keywords": [ |
| 256 |
"align", |
| 257 |
"align-center", |
| 258 |
"alignment", |
| 259 |
"center", |
| 260 |
"center-align", |
| 261 |
"indent", |
| 262 |
"pad", |
| 263 |
"padding", |
| 264 |
"right", |
| 265 |
"right-align", |
| 266 |
"text", |
| 267 |
"typography" |
| 268 |
], |
| 269 |
"gitHead": "11c2e834ff2c63f9844bddf189fea5cab921e44d", |
| 270 |
"_id": "[email protected]", |
| 271 |
"_shasum": "72db3983872eec2313919c9426a993a41afe93f7", |
| 272 |
"_from": ".", |
| 273 |
"_npmVersion": "2.10.1", |
| 274 |
"_nodeVersion": "0.12.4", |
| 275 |
"_npmUser": { |
| 276 |
"name": "jonschlinkert", |
| 277 |
"email": "[email protected]" |
| 278 |
}, |
| 279 |
"maintainers": [ |
| 280 |
{ |
| 281 |
"name": "jonschlinkert", |
| 282 |
"email": "[email protected]" |
| 283 |
} |
| 284 |
], |
| 285 |
"dist": { |
| 286 |
"shasum": "72db3983872eec2313919c9426a993a41afe93f7", |
| 287 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-0.1.3.tgz" |
| 288 |
}, |
| 289 |
"directories": {} |
| 290 |
}, |
| 291 |
"0.1.4": { |
| 292 |
"name": "align-text", |
| 293 |
"description": "Align the text in a string.", |
| 294 |
"version": "0.1.4", |
| 295 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 296 |
"author": { |
| 297 |
"name": "Jon Schlinkert", |
| 298 |
"url": "https://github.com/jonschlinkert" |
| 299 |
}, |
| 300 |
"repository": { |
| 301 |
"type": "git", |
| 302 |
"url": "git://github.com/jonschlinkert/align-text.git" |
| 303 |
}, |
| 304 |
"bugs": { |
| 305 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 306 |
}, |
| 307 |
"license": "MIT", |
| 308 |
"files": [ |
| 309 |
"index.js" |
| 310 |
], |
| 311 |
"main": "index.js", |
| 312 |
"engines": { |
| 313 |
"node": ">=0.10.0" |
| 314 |
}, |
| 315 |
"scripts": { |
| 316 |
"test": "mocha" |
| 317 |
}, |
| 318 |
"dependencies": { |
| 319 |
"kind-of": "^3.0.2", |
| 320 |
"longest": "^1.0.1", |
| 321 |
"repeat-string": "^1.5.2" |
| 322 |
}, |
| 323 |
"devDependencies": { |
| 324 |
"mocha": "*", |
| 325 |
"should": "*", |
| 326 |
"word-wrap": "^1.0.3" |
| 327 |
}, |
| 328 |
"keywords": [ |
| 329 |
"align", |
| 330 |
"align-center", |
| 331 |
"alignment", |
| 332 |
"center", |
| 333 |
"center-align", |
| 334 |
"indent", |
| 335 |
"pad", |
| 336 |
"padding", |
| 337 |
"right", |
| 338 |
"right-align", |
| 339 |
"text", |
| 340 |
"typography" |
| 341 |
], |
| 342 |
"gitHead": "7f08e823a54c6bda319d875895813537a66a4c5e", |
| 343 |
"_id": "[email protected]", |
| 344 |
"_shasum": "0cd90a561093f35d0a99256c22b7069433fad117", |
| 345 |
"_from": ".", |
| 346 |
"_npmVersion": "3.6.0", |
| 347 |
"_nodeVersion": "5.5.0", |
| 348 |
"_npmUser": { |
| 349 |
"name": "shinnn", |
| 350 |
"email": "[email protected]" |
| 351 |
}, |
| 352 |
"maintainers": [ |
| 353 |
{ |
| 354 |
"name": "jonschlinkert", |
| 355 |
"email": "[email protected]" |
| 356 |
}, |
| 357 |
{ |
| 358 |
"name": "shinnn", |
| 359 |
"email": "[email protected]" |
| 360 |
} |
| 361 |
], |
| 362 |
"dist": { |
| 363 |
"shasum": "0cd90a561093f35d0a99256c22b7069433fad117", |
| 364 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz" |
| 365 |
}, |
| 366 |
"_npmOperationalInternal": { |
| 367 |
"host": "packages-9-west.internal.npmjs.com", |
| 368 |
"tmp": "tmp/align-text-0.1.4.tgz_1454377856920_0.9624228512402624" |
| 369 |
}, |
| 370 |
"directories": {} |
| 371 |
}, |
| 372 |
"1.0.0": { |
| 373 |
"name": "align-text", |
| 374 |
"description": "Align the text in a string.", |
| 375 |
"version": "1.0.0", |
| 376 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 377 |
"author": { |
| 378 |
"name": "Jon Schlinkert", |
| 379 |
"url": "https://github.com/jonschlinkert" |
| 380 |
}, |
| 381 |
"contributors": [ |
| 382 |
{ |
| 383 |
"name": "Jon Schlinkert", |
| 384 |
"url": "http://twitter.com/jonschlinkert" |
| 385 |
}, |
| 386 |
{ |
| 387 |
"name": "Shinnosuke Watanabe", |
| 388 |
"url": "https://shinnn.github.io" |
| 389 |
} |
| 390 |
], |
| 391 |
"repository": { |
| 392 |
"type": "git", |
| 393 |
"url": "git+https://github.com/jonschlinkert/align-text.git" |
| 394 |
}, |
| 395 |
"bugs": { |
| 396 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 397 |
}, |
| 398 |
"license": "MIT", |
| 399 |
"files": [ |
| 400 |
"index.js" |
| 401 |
], |
| 402 |
"main": "index.js", |
| 403 |
"engines": { |
| 404 |
"node": ">=0.10.0" |
| 405 |
}, |
| 406 |
"scripts": { |
| 407 |
"test": "mocha" |
| 408 |
}, |
| 409 |
"dependencies": { |
| 410 |
"kind-of": "^4.0.0", |
| 411 |
"longest": "^2.0.1", |
| 412 |
"repeat-string": "^1.6.1" |
| 413 |
}, |
| 414 |
"devDependencies": { |
| 415 |
"word-wrap": "^1.2.2", |
| 416 |
"gulp-format-md": "^0.1.12" |
| 417 |
}, |
| 418 |
"keywords": [ |
| 419 |
"align", |
| 420 |
"align-center", |
| 421 |
"alignment", |
| 422 |
"center", |
| 423 |
"center-align", |
| 424 |
"indent", |
| 425 |
"pad", |
| 426 |
"padding", |
| 427 |
"right", |
| 428 |
"right-align", |
| 429 |
"text", |
| 430 |
"typography" |
| 431 |
], |
| 432 |
"verb": { |
| 433 |
"toc": false, |
| 434 |
"layout": "default", |
| 435 |
"tasks": [ |
| 436 |
"readme" |
| 437 |
], |
| 438 |
"plugins": [ |
| 439 |
"gulp-format-md" |
| 440 |
], |
| 441 |
"lint": { |
| 442 |
"reflinks": true |
| 443 |
} |
| 444 |
}, |
| 445 |
"gitHead": "f9845d37ba5cf9007bba10bf8aaf35114d08c53a", |
| 446 |
"_id": "[email protected]", |
| 447 |
"_shasum": "84db79afa0dc32e0424be15642f144cb0adf888b", |
| 448 |
"_from": ".", |
| 449 |
"_npmVersion": "4.6.1", |
| 450 |
"_nodeVersion": "7.7.3", |
| 451 |
"_npmUser": { |
| 452 |
"name": "jonschlinkert", |
| 453 |
"email": "[email protected]" |
| 454 |
}, |
| 455 |
"maintainers": [ |
| 456 |
{ |
| 457 |
"name": "doowb", |
| 458 |
"email": "[email protected]" |
| 459 |
}, |
| 460 |
{ |
| 461 |
"name": "jonschlinkert", |
| 462 |
"email": "[email protected]" |
| 463 |
}, |
| 464 |
{ |
| 465 |
"name": "shinnn", |
| 466 |
"email": "[email protected]" |
| 467 |
} |
| 468 |
], |
| 469 |
"dist": { |
| 470 |
"shasum": "84db79afa0dc32e0424be15642f144cb0adf888b", |
| 471 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-1.0.0.tgz" |
| 472 |
}, |
| 473 |
"_npmOperationalInternal": { |
| 474 |
"host": "s3://npm-registry-packages", |
| 475 |
"tmp": "tmp/align-text-1.0.0.tgz_1495774052756_0.7010780372656882" |
| 476 |
}, |
| 477 |
"directories": {} |
| 478 |
}, |
| 479 |
"1.0.1": { |
| 480 |
"name": "align-text", |
| 481 |
"description": "Align the text in a string.", |
| 482 |
"version": "1.0.1", |
| 483 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 484 |
"author": { |
| 485 |
"name": "Jon Schlinkert", |
| 486 |
"url": "https://github.com/jonschlinkert" |
| 487 |
}, |
| 488 |
"contributors": [ |
| 489 |
{ |
| 490 |
"name": "Jon Schlinkert", |
| 491 |
"url": "http://twitter.com/jonschlinkert" |
| 492 |
}, |
| 493 |
{ |
| 494 |
"name": "Shinnosuke Watanabe", |
| 495 |
"url": "https://shinnn.github.io" |
| 496 |
} |
| 497 |
], |
| 498 |
"repository": { |
| 499 |
"type": "git", |
| 500 |
"url": "git+https://github.com/jonschlinkert/align-text.git" |
| 501 |
}, |
| 502 |
"bugs": { |
| 503 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 504 |
}, |
| 505 |
"license": "MIT", |
| 506 |
"files": [ |
| 507 |
"index.js" |
| 508 |
], |
| 509 |
"main": "index.js", |
| 510 |
"engines": { |
| 511 |
"node": ">=0.10.0" |
| 512 |
}, |
| 513 |
"scripts": { |
| 514 |
"test": "mocha" |
| 515 |
}, |
| 516 |
"dependencies": { |
| 517 |
"kind-of": "^5.0.2", |
| 518 |
"longest": "^2.0.1", |
| 519 |
"repeat-string": "^1.6.1" |
| 520 |
}, |
| 521 |
"devDependencies": { |
| 522 |
"gulp-format-md": "^1.0.0", |
| 523 |
"mocha": "^3.5.3", |
| 524 |
"word-wrap": "^1.2.3" |
| 525 |
}, |
| 526 |
"keywords": [ |
| 527 |
"align", |
| 528 |
"align-center", |
| 529 |
"alignment", |
| 530 |
"center", |
| 531 |
"center-align", |
| 532 |
"indent", |
| 533 |
"pad", |
| 534 |
"padding", |
| 535 |
"right", |
| 536 |
"right-align", |
| 537 |
"text", |
| 538 |
"typography" |
| 539 |
], |
| 540 |
"verb": { |
| 541 |
"toc": false, |
| 542 |
"layout": "default", |
| 543 |
"tasks": [ |
| 544 |
"readme" |
| 545 |
], |
| 546 |
"plugins": [ |
| 547 |
"gulp-format-md" |
| 548 |
], |
| 549 |
"lint": { |
| 550 |
"reflinks": true |
| 551 |
} |
| 552 |
}, |
| 553 |
"gitHead": "f8dafe53ae67eb6e9026f9319fd43503baf613aa", |
| 554 |
"_id": "[email protected]", |
| 555 |
"_npmVersion": "5.4.1", |
| 556 |
"_nodeVersion": "8.4.0", |
| 557 |
"_npmUser": { |
| 558 |
"name": "jonschlinkert", |
| 559 |
"email": "[email protected]" |
| 560 |
}, |
| 561 |
"maintainers": [ |
| 562 |
{ |
| 563 |
"name": "doowb", |
| 564 |
"email": "[email protected]" |
| 565 |
}, |
| 566 |
{ |
| 567 |
"name": "jonschlinkert", |
| 568 |
"email": "[email protected]" |
| 569 |
}, |
| 570 |
{ |
| 571 |
"name": "shinnn", |
| 572 |
"email": "[email protected]" |
| 573 |
} |
| 574 |
], |
| 575 |
"dist": { |
| 576 |
"integrity": "sha512-RiGevjTRRsUgt/T3dEgbQycuyPW916ayUb4y+yG8URCHz4mN0oFyQ8E0Zd2tpQww5RGgIdvO6ZXIsPfGSKFO9Q==", |
| 577 |
"shasum": "e8ff22bb0d4fe60ae9b0da1c8ad91c0eb1c4e036", |
| 578 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-1.0.1.tgz" |
| 579 |
}, |
| 580 |
"_npmOperationalInternal": { |
| 581 |
"host": "s3://npm-registry-packages", |
| 582 |
"tmp": "tmp/align-text-1.0.1.tgz_1505302438280_0.8984816842712462" |
| 583 |
}, |
| 584 |
"directories": {} |
| 585 |
}, |
| 586 |
"1.0.2": { |
| 587 |
"name": "align-text", |
| 588 |
"description": "Align the text in a string.", |
| 589 |
"version": "1.0.2", |
| 590 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 591 |
"author": { |
| 592 |
"name": "Jon Schlinkert", |
| 593 |
"url": "https://github.com/jonschlinkert" |
| 594 |
}, |
| 595 |
"contributors": [ |
| 596 |
{ |
| 597 |
"name": "Jon Schlinkert", |
| 598 |
"url": "http://twitter.com/jonschlinkert" |
| 599 |
}, |
| 600 |
{ |
| 601 |
"name": "Shinnosuke Watanabe", |
| 602 |
"url": "https://shinnn.github.io" |
| 603 |
} |
| 604 |
], |
| 605 |
"repository": { |
| 606 |
"type": "git", |
| 607 |
"url": "git+https://github.com/jonschlinkert/align-text.git" |
| 608 |
}, |
| 609 |
"bugs": { |
| 610 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 611 |
}, |
| 612 |
"license": "MIT", |
| 613 |
"files": [ |
| 614 |
"index.js" |
| 615 |
], |
| 616 |
"main": "index.js", |
| 617 |
"engines": { |
| 618 |
"node": ">=0.10.0" |
| 619 |
}, |
| 620 |
"scripts": { |
| 621 |
"test": "mocha" |
| 622 |
}, |
| 623 |
"dependencies": { |
| 624 |
"kind-of": "^5.0.2", |
| 625 |
"longest": "^2.0.1", |
| 626 |
"repeat-string": "^1.6.1" |
| 627 |
}, |
| 628 |
"devDependencies": { |
| 629 |
"gulp-format-md": "^1.0.0", |
| 630 |
"mocha": "^3.5.3", |
| 631 |
"word-wrap": "^1.2.3" |
| 632 |
}, |
| 633 |
"keywords": [ |
| 634 |
"align", |
| 635 |
"align-center", |
| 636 |
"alignment", |
| 637 |
"center", |
| 638 |
"center-align", |
| 639 |
"indent", |
| 640 |
"pad", |
| 641 |
"padding", |
| 642 |
"right", |
| 643 |
"right-align", |
| 644 |
"text", |
| 645 |
"typography" |
| 646 |
], |
| 647 |
"verb": { |
| 648 |
"toc": false, |
| 649 |
"layout": "default", |
| 650 |
"tasks": [ |
| 651 |
"readme" |
| 652 |
], |
| 653 |
"plugins": [ |
| 654 |
"gulp-format-md" |
| 655 |
], |
| 656 |
"lint": { |
| 657 |
"reflinks": true |
| 658 |
} |
| 659 |
}, |
| 660 |
"gitHead": "f43f4732a690cd97e563f842247f227b5182ec77", |
| 661 |
"_id": "[email protected]", |
| 662 |
"_npmVersion": "5.4.1", |
| 663 |
"_nodeVersion": "8.4.0", |
| 664 |
"_npmUser": { |
| 665 |
"name": "jonschlinkert", |
| 666 |
"email": "[email protected]" |
| 667 |
}, |
| 668 |
"maintainers": [ |
| 669 |
{ |
| 670 |
"name": "doowb", |
| 671 |
"email": "[email protected]" |
| 672 |
}, |
| 673 |
{ |
| 674 |
"name": "jonschlinkert", |
| 675 |
"email": "[email protected]" |
| 676 |
}, |
| 677 |
{ |
| 678 |
"name": "shinnn", |
| 679 |
"email": "[email protected]" |
| 680 |
} |
| 681 |
], |
| 682 |
"dist": { |
| 683 |
"integrity": "sha512-uBPDs72zrRTdiTBY0YjBbuBOdXtRyT4qsKPb4bL4O7vH4utz/7KjwTJVsVbdThxMbVzkRGAfk8Ml3xoMvXSEYw==", |
| 684 |
"shasum": "d35cf1c99bc16089af1b2a887683adcb7e6ca68a", |
| 685 |
"tarball": "https://registry.npmjs.org/align-text/-/align-text-1.0.2.tgz" |
| 686 |
}, |
| 687 |
"_npmOperationalInternal": { |
| 688 |
"host": "s3://npm-registry-packages", |
| 689 |
"tmp": "tmp/align-text-1.0.2.tgz_1505302470161_0.43850269448012114" |
| 690 |
}, |
| 691 |
"directories": {} |
| 692 |
} |
| 693 |
}, |
| 694 |
"readme": "# align-text [](https://www.npmjs.com/package/align-text) [](https://npmjs.org/package/align-text) [](https://npmjs.org/package/align-text) [](https://travis-ci.org/jonschlinkert/align-text)\n\n> Align the text in a string.\n\nFollow this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), for updates on this project and others.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save align-text\n```\n\n## Usage\n\n```js\nvar align = require('align-text');\n\nalign(text, function_or_integer);\n```\n\n**Params**\n\n* `text` can be a **string or array**. If a string is passed, a string will be returned. If an array is passed, an array will be returned.\n* `function|integer`: if an integer, the text will be indented by that amount. If a transform function is passed, it must return an object with an `integer` property or an integer representing the amount of leading indentation to use as `align` loops over each line.\n\n**Example**\n\n```js\nalign(text, 4);\n```\n\nWould align:\n\n```\nabc\nabc\nabc\n```\nTo:\n\n```\n abc\n abc\n abc\n```\n\n## Transform function\n\n### params\n\nThe callback is used to determine the indentation of each line and gets the following params:\n\n* `len` the length of the \"current\" line\n* `longest` the length of the longest line\n* `line` the current line (string) being aligned\n* `lines` the array of all lines\n\n### return\n\nThe callback may return:\n\n* an integer that represents the number of spaces to use for padding,\n* or an object with the following properties:\n - `indent`: **{Number}** the amount of indentation to use. Default is `0` when an object is returned.\n - `character`: **{String}** the character to use for indentation. Default is `''` (empty string) when an object is returned.\n - `prefix`: **{String}** leading characters to use at the beginning of each line. `''` (empty string) when an object is returned.\n\n**Integer example:**\n\n```js\n// calculate half the difference between the length\n// of the current line and the longest line\nfunction centerAlign(len, longest, line, lines) {\n return Math.floor((longest - len) / 2);\n}\n```\n\n**Object example:**\n\n```js\nfunction centerAlign(len, longest, line, lines) {\n return {\n character: '\\t',\n indent: Math.floor((longest - len) / 2),\n prefix: '~ ',\n }\n}\n```\n\n## Usage examples\n\nAlign text values in an array:\n\n```js\nalign([1, 2, 3, 100]);\n//=> [' 1', ' 2', ' 3', '100']\n```\n\nOr [do stuff like this](./example.js):\n\n\n\nVisit [the example](./example.js) to see how this works.\n\n### Center align\n\nUsing the `centerAlign` function from above:\n\n```js\nalign(text, centerAlign);\n```\n\nWould align this text:\n\n```js\nLorem ipsum dolor sit amet\nconsectetur adipiscin\nelit, sed do eiusmod tempor incididun\nut labore et dolor\nmagna aliqua. Ut enim ad mini\nveniam, quis\n```\n\nResulting in this:\n\n```\n Lorem ipsum dolor sit amet,\n consectetur adipiscing\nelit, sed do eiusmod tempor incididunt\n ut labore et dolore\n magna aliqua. Ut enim ad minim\n veniam, quis\n```\n\n**Customize**\n\nIf you wanted to add more padding on the left, just pass the number in the callback.\n\nFor example, to add 4 spaces before every line:\n\n```js\nfunction centerAlign(len, longest, line, lines) {\n return 4 + Math.floor((longest - len) / 2);\n}\n```\n\nWould result in:\n\n```\n Lorem ipsum dolor sit amet,\n consectetur adipiscing\n elit, sed do eiusmod tempor incididunt\n ut labore et dolore\n magna aliqua. Ut enim ad minim\n veniam, quis\n```\n\n### Bullets\n\n```js\nalign(text, function (len, max, line, lines) {\n return {prefix: ' - '};\n});\n```\nWould return:\n\n```\n- Lorem ipsum dolor sit amet,\n- consectetur adipiscing\n- elit, sed do eiusmod tempor incididunt\n- ut labore et dolore\n- magna aliqua. Ut enim ad minim\n- veniam, quis\n```\n\n### Different indent character\n\n```js\nalign(text, function (len, max, line, lines) {\n return { \n indent: Math.floor((max - len) / 2), \n character: '~', \n };\n});\n```\nWould return\n\n```\n~~~~~Lorem ipsum dolor sit amet,\n~~~~~~~~consectetur adipiscing\nelit, sed do eiusmod tempor incididunt\n~~~~~~~~~ut labore et dolore\n~~~~magna aliqua. Ut enim ad minim\n~~~~~~~~~~~~~veniam, quis\n```\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 14 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [shinnn](https://github.com/shinnn) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on September 13, 2017._", |
| 695 |
"maintainers": [ |
| 696 |
{ |
| 697 |
"email": "[email protected]", |
| 698 |
"name": "doowb" |
| 699 |
}, |
| 700 |
{ |
| 701 |
"email": "[email protected]", |
| 702 |
"name": "shinnn" |
| 703 |
}, |
| 704 |
{ |
| 705 |
"email": "[email protected]", |
| 706 |
"name": "jonschlinkert" |
| 707 |
} |
| 708 |
], |
| 709 |
"time": { |
| 710 |
"modified": "2018-02-06T08:34:55.921Z", |
| 711 |
"created": "2015-03-08T01:03:18.899Z", |
| 712 |
"0.1.0": "2015-03-08T01:03:18.899Z", |
| 713 |
"0.1.1": "2015-03-08T01:25:47.262Z", |
| 714 |
"0.1.2": "2015-06-09T06:23:28.614Z", |
| 715 |
"0.1.3": "2015-06-09T06:25:00.237Z", |
| 716 |
"0.1.4": "2016-02-02T01:50:57.618Z", |
| 717 |
"1.0.0": "2017-05-26T04:47:33.816Z", |
| 718 |
"1.0.1": "2017-09-13T11:33:59.409Z", |
| 719 |
"1.0.2": "2017-09-13T11:34:31.117Z" |
| 720 |
}, |
| 721 |
"homepage": "https://github.com/jonschlinkert/align-text", |
| 722 |
"repository": { |
| 723 |
"type": "git", |
| 724 |
"url": "git+https://github.com/jonschlinkert/align-text.git" |
| 725 |
}, |
| 726 |
"author": { |
| 727 |
"name": "Jon Schlinkert", |
| 728 |
"url": "https://github.com/jonschlinkert" |
| 729 |
}, |
| 730 |
"bugs": { |
| 731 |
"url": "https://github.com/jonschlinkert/align-text/issues" |
| 732 |
}, |
| 733 |
"license": "MIT", |
| 734 |
"readmeFilename": "README.md", |
| 735 |
"keywords": [ |
| 736 |
"align", |
| 737 |
"align-center", |
| 738 |
"alignment", |
| 739 |
"center", |
| 740 |
"center-align", |
| 741 |
"indent", |
| 742 |
"pad", |
| 743 |
"padding", |
| 744 |
"right", |
| 745 |
"right-align", |
| 746 |
"text", |
| 747 |
"typography" |
| 748 |
], |
| 749 |
"users": { |
| 750 |
"kkuehl": true, |
| 751 |
"kopepasah": true, |
| 752 |
"vivek.vikhere": true |
| 753 |
}, |
| 754 |
"contributors": [ |
| 755 |
{ |
| 756 |
"name": "Jon Schlinkert", |
| 757 |
"url": "http://twitter.com/jonschlinkert" |
| 758 |
}, |
| 759 |
{ |
| 760 |
"name": "Shinnosuke Watanabe", |
| 761 |
"url": "https://shinnn.github.io" |
| 762 |
} |
| 763 |
], |
| 764 |
"_attachments": {} |
| 765 |
} |