left-pad-es6
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

left-pad-es6

ES6 implementation of the left-pad. NOTE: This is not a drop-in replacement.

[![Build Status][travis-image]][travis-url]

Install

$ npm install left-pad-es6

Usage

const leftPad = require('left-pad-es6')
 
leftPad('foo', 5)
// => "  foo"
 
leftPad('foobar', 6)
// => "foobar"
 
leftPad(1, 2, '0')
// => "01"
 
leftPad(17, 5, 0)
// => "00017"

Package Sidebar

Install

npm i left-pad-es6

Weekly Downloads

0

Version

0.0.1

License

WTFPL

Unpacked Size

5.4 kB

Total Files

10

Last publish

Collaborators

  • pravindahal