This package has been deprecated

Author message:

Please use String.prototype.padEnd() over this package.

right-pad

1.0.1 • Public • Published

Right Pad

Right Pad adds a "padding" to the right side of the string with the character of your choice or just blank space.

Install

$ npm install right-pad

Usage

var rightpad = require('right-pad');
rightpad('hello world', 14, '.'); // => hello world...

/right-pad/

    Package Sidebar

    Install

    npm i right-pad

    Weekly Downloads

    208,015

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • matthewh