1.0.21 • Published 6 years ago
isi-string v1.0.21
string helpers for node.js
Methods
trim()
alias : trimChar trim(value, charToTrim)
Removes a character or string from the left and right side of a string
var isiString = require( 'isi-string' );
isiString.trim("__unformated string__", '_' );
// -> unformated string
isiString.trim(",unformated string,", ',' );
// -> unformated string
split():
split(value, charToSplit)
Splits an array and removes empty entries
var isiString = require( 'isi-string' );
isiString.split("Hello World", ' ' );
// -> ['Hello', 'World']
isiString.split("Hello,World,,,", ',' );
// -> ['Hello', 'World']
removeFromRight():
removeFromRight(value, amountToRemove)
removes characters from the right
var isiString = require( 'isi-string' );
isiString.removeFromRight("Hello World", 3 );
// -> Hello Wo
Version History:
1.0.19
- added capitalizeFirstLetter function
1.0.17
- added urlJoin method
1.0.6
- added function to remove chars from the right: removeFromRight
1.0.6
- little docu improvement
1.0.5
- trim all splitted values
1.0.21
6 years ago
1.0.20
6 years ago
1.0.19
7 years ago
1.0.18
7 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago