3.0.2 • Published 7 months ago

complete-string v3.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 months ago

complete-string

node version npm version downloads count size license github-ci

🔨 Complete string by any char.

WARNING: This repo is shim for String.prototype.padStart (defined in ES2017 spec).

Usage

Installation:

npm install complete-string
// CommonJS
const CompleteString = require('complete-string');

// or ES Modules
import * as CompleteString from 'complete-string';

CompleteString.withChar(' batman', 10, 'a') // => 'aaa batman'
CompleteString.withZero('5', 2) // => '05'
// or import particular functions
import { withChar, withZero } from "complete-string";

withChar(' zorro', 10, 'z') // => 'zzzz zorro'
withZero('6', 2) // => '06'

License

The MIT License @ 2014

3.0.2

7 months ago

3.0.1

7 months ago

3.0.0

9 months ago

2.2.13

9 months ago

2.2.12

10 months ago

2.2.9

10 months ago

2.2.8

10 months ago

2.2.11

10 months ago

2.2.10

10 months ago

2.2.5

10 months ago

2.2.4

10 months ago

2.2.7

10 months ago

2.2.6

10 months ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.0

6 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago