UNPKG
lint-md-cli
Version:
latest (0.1.2)
0.1.2
0.1.1
0.1.0
Cli tool to lint your markdown file for Chinese.
github.com/hustcc/lint-md
hustcc/lint-md
lint-md-cli
/
bin
/
helper
/
string.js
14 lines
(11 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict"
;
exports
.
rightPad
=
function
(
s, len
) {
var
c =
arguments
.
length
>
2
&&
arguments
[
2
] !==
undefined
?
arguments
[
2
] :
' '
;
var
i = -
1
;
var
length = len - s.
length
;
var
str = s;
while
(++i < length) { str += c; }
return
str; };