arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

right-align

Right-align the text in a string.

Install with npmarrow-up-right

hashtag
Usage

Example

If used on the following:

The result would be:

hashtag
Related projects

  • : Align the text in a string.

  • : Center-align the text in a string.

  • : Left or right (or both) justify text using a custom width and character

hashtag
Running tests

Install dev dependencies:

hashtag
Contributing

Pull requests and stars are always welcome. For bugs and feature requests,

hashtag
Author

Jon Schlinkert

hashtag
License

Copyright © 2015 Jon Schlinkert Released under the MIT license.

This file was generated by on June 09, 2015.

$ npm i right-align --save
var rightAlign = require('right-align');
rightAlign(string);

: Repeat the given string n times. Fastest implementation for repeating a string.

  • : Create an array by repeating the given value n times.

  • : Wrap words to a specified length.

  • align-textarrow-up-right
    center-alignarrow-up-right
    justifyarrow-up-right
    please create an issuearrow-up-right
    github/jonschlinkertarrow-up-right
    twitter/jonschlinkertarrow-up-right
    verb-cliarrow-up-right
    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
               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
    $ npm i -d && npm test
    repeat-stringarrow-up-right
    repeat-elementarrow-up-right
    word-wraparrow-up-right