Skip to content

ycmjason/pad-left-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pad left simple

Build Status

Pad left with some chars given a fixed length. An implementation of pad left at its simplest.

Install

npm install --save pad-left-simple

Usage

var padLeft = require('pad-left-simple');

padLeft('hello', 10); // "     hello"
padLeft('10101', 10, '0'); // "0000010101"

Test

npm test

Why not other packages?

There is no other reason, this implementation is just simpler and might not be that efficient.

About

Pad left with some chars given a fixed length.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published