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...

Readme

Keywords

Package Sidebar

Install

npm i right-pad

Weekly Downloads

254,878

Version

1.0.1

License

MIT

Last publish

Collaborators

  • matthewh