Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

right-pad

MatthewSH987.4kMITdeprecated1.1.1TypeScript support: included

Use String.prototype.padEnd() instead

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

right, pad, string

readme

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

changelog