dc_leftpad_test

0.0.1 • Public • Published

dc_leftpad

A simple package to pad a string to at least a given length with a specified padding.

Basic Usage

var leftpad = require("dc_leftpad");
 
/**
* Pass string to pad, minimum required length 
*   and string to use for padding
**/
leftpad("bcd", 4, "a"); //"abcd"
 

Readme

Keywords

Package Sidebar

Install

npm i dc_leftpad_test

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • thedumbtechguy