3.0.2 • Published 5 months ago

complete-string v3.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 months ago

3.0.1

5 months ago

3.0.0

8 months ago

2.2.13

8 months ago

2.2.12

8 months ago

2.2.9

9 months ago

2.2.8

9 months ago

2.2.11

9 months ago

2.2.10

9 months ago

2.2.5

9 months ago

2.2.4

9 months ago

2.2.7

9 months ago

2.2.6

9 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