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