center-align
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "center-align", | ||
"description": "Right-align the text in a string.", | ||
"version": "0.1.0", | ||
"description": "Center-align the text in a string.", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/jonschlinkert/center-align", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -17,4 +17,31 @@ # center-align [![NPM version](https://badge.fury.io/js/center-align.svg)](http://badge.fury.io/js/center-align) | ||
**Example** | ||
If used on the following: | ||
``` | ||
Lorem ipsum dolor sit amet, | ||
consectetur adipiscing | ||
elit, sed do eiusmod tempor incididunt | ||
ut labore et dolore | ||
magna aliqua. Ut enim ad minim | ||
veniam, quis | ||
``` | ||
The result would be: | ||
``` | ||
Lorem ipsum dolor sit amet, | ||
consectetur adipiscing | ||
elit, sed do eiusmod tempor incididunt | ||
ut labore et dolore | ||
magna aliqua. Ut enim ad minim | ||
veniam, quis | ||
``` | ||
## Related projects | ||
{%= related(['right-align', 'align-text', 'justify', 'word-wrap']) %} | ||
* [right-align](https://github.com/jonschlinkert/right-align): Right-align the text in a string. | ||
* [align-text](https://github.com/jonschlinkert/align-text): Align the text in a string. | ||
* [justify](https://github.com/bahamas10/node-justify): Left or right (or both) justify text using a custom width and character | ||
* [word-wrap](https://github.com/jonschlinkert/word-wrap): Wrap words to a specified length. | ||
@@ -21,0 +48,0 @@ ## Running tests |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4135
73