项目原始demo,不改动
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
Questo repository è archiviato. Puoi vedere i file e clonarli, ma non puoi effettuare richieste di pushj o aprire problemi/richieste di pull.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # center-align [![NPM version](https://badge.fury.io/js/center-align.svg)](http://badge.fury.io/js/center-align)
  2. > Center-align the text in a string.
  3. Install with [npm](https://www.npmjs.com/)
  4. ```sh
  5. $ npm i center-align --save
  6. ```
  7. ## Usage
  8. ```js
  9. var centerAlign = require('center-align');
  10. ```
  11. **Example**
  12. If used on the following:
  13. ```
  14. Lorem ipsum dolor sit amet,
  15. consectetur adipiscing
  16. elit, sed do eiusmod tempor incididunt
  17. ut labore et dolore
  18. magna aliqua. Ut enim ad minim
  19. veniam, quis
  20. ```
  21. The result would be:
  22. ```
  23. Lorem ipsum dolor sit amet,
  24. consectetur adipiscing
  25. elit, sed do eiusmod tempor incididunt
  26. ut labore et dolore
  27. magna aliqua. Ut enim ad minim
  28. veniam, quis
  29. ```
  30. ## Related projects
  31. * [align-text](https://www.npmjs.com/package/align-text): Align the text in a string. | [homepage](https://github.com/jonschlinkert/align-text)
  32. * [justified](https://www.npmjs.com/package/justified): Wrap words to a specified length and justified the text. | [homepage](https://github.com/jonschlinkert/justified)
  33. * [right-align](https://www.npmjs.com/package/right-align): Right-align the text in a string. | [homepage](https://github.com/jonschlinkert/right-align)
  34. * [word-wrap](https://www.npmjs.com/package/word-wrap): Wrap words to a specified length. | [homepage](https://github.com/jonschlinkert/word-wrap)
  35. ## Running tests
  36. Install dev dependencies:
  37. ```sh
  38. $ npm i -d && npm test
  39. ```
  40. ## Contributing
  41. Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/center-align/issues/new).
  42. ## Author
  43. **Jon Schlinkert**
  44. + [github/jonschlinkert](https://github.com/jonschlinkert)
  45. + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
  46. ## License
  47. Copyright © 2015 Jon Schlinkert
  48. Released under the MIT license.
  49. ***
  50. _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 27, 2015._