right-pad

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

Use String.prototype.padEnd() instead
Last updated 2 years ago by matthewh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install right-pad 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.1                                ...           latest (2 years ago)

8 Versions

  • 1.1.1 [deprecated]           ...           2 years ago
  • 1.1.0 [deprecated]           ...           2 years ago
  • 1.0.1 [deprecated]           ...           10 years ago
  • 1.0.0 [deprecated]           ...           11 years ago
  • 0.0.1-security [deprecated]           ...           11 years ago
  • 2.0.0 [deprecated]           ...           11 years ago
  • 0.0.1 [deprecated]           ...           12 years ago
  • 0.0.0 [deprecated]           ...           12 years ago
Maintainers (1)
Downloads
Total 37
Today 0
This Week 0
This Month 18
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE