JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 246338
  • Score
    100M100P100Q58867F
  • License MIT

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

Package Exports

  • right-pad

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (right-pad) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.

Install

$ npm install right-pad

Usage

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