extool

0.0.7 • Public • Published

extool

Build Status

extool provides some useful extensions.

string.lpad

left pading string

"test".lpad(10) // "test "

string.rpad

right pading string

"test".rpad(10) // " test"

string.replaceAll

replaces all seraching word in string

"test".replaceAll("t", "tt") // "ttestt"

number.pad

pad to number 15.pad(5, "0") // 00015

string.fix

fix string to given length

"abcd".fix(5) // "abcd " "abcd".fix(3) // "abc"

Readme

Keywords

none

Package Sidebar

Install

npm i extool

Weekly Downloads

1

Version

0.0.7

License

none

Last publish

Collaborators

  • kutlayozger