complete-string
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -70,3 +70,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
* @description CompleteString string by any char. This repo is some kind of polyfill for ES7 padLeft. | ||
* @version 2.1.0 | ||
* @version 2.1.2 | ||
* @license MIT | ||
@@ -73,0 +73,0 @@ * @example |
@@ -5,3 +5,3 @@ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CompleteString=e():t.CompleteString=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){"use strict";t.exports=r(1)},function(t,e){/** | ||
* @description CompleteString string by any char. This repo is some kind of polyfill for ES7 padLeft. | ||
* @version 2.1.0 | ||
* @version 2.1.2 | ||
* @license MIT | ||
@@ -8,0 +8,0 @@ * @example |
{ | ||
"name": "complete-string", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "CompleteString string by any char. This repo is some kind of polyfill for ES7 padLeft.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -16,6 +16,8 @@ # complete-string ([npm](https://www.npmjs.com/package/complete-string)) | ||
## Usage | ||
## API | ||
- `withChar` - complete with any char: | ||
### `withChar(string: string, length: number, char: string)` | ||
Complete with any char: | ||
```javascript | ||
@@ -25,4 +27,6 @@ CompleteString.withChar(' batman', 10, 'a') // => 'aaa batman' | ||
- `withZero` - complete with `0`: | ||
### `withZero(string: string, length: number)` | ||
Complete with `0`: | ||
```javascript | ||
@@ -35,3 +39,3 @@ var date = new Date(); | ||
How to run unit test (written in Jasmine): | ||
To run unit tests (written in Jasmine) execute: | ||
@@ -38,0 +42,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23900
54