This package has been deprecated

Author message:

Use String.prototype.padEnd() instead

right-pad
TypeScript icon, indicating that this package has built-in type declarations

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

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i right-pad

Weekly Downloads

247,899

Version

1.1.1

License

MIT

Unpacked Size

4.24 kB

Total Files

8

Last publish

Collaborators

  • matthewh