right-pad

String right pad

Please use String.prototype.padEnd() over this package.
Last updated 10 years ago by npm .
BSD · Repository · 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.

Install

$ npm install right-pad

Usage

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

Current Tags

  • 1.0.1                                ...           latest (8 years ago)

6 Versions

  • 1.0.1 [deprecated]           ...           8 years ago
  • 1.0.0 [deprecated]           ...           9 years ago
  • 0.0.1-security [deprecated]           ...           9 years ago
  • 2.0.0 [deprecated]           ...           9 years ago
  • 0.0.1 [deprecated]           ...           9 years ago
  • 0.0.0 [deprecated]           ...           10 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

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