strp
v0.0.4
Published
strp is useful String object extensions
Readme
strp
strp is String Object Extensions for node.js
install
$ npm install strpupdate
$ npm update strpUsase
require module
var strp = require('strp');rtrim
strp.rtrim('hello world ');
// hello worldltrim
strp.rtrim(' hello world');
// helloworldtrim
strp.rtrim(' hello world ');
// helloworldjoin
strp.join('hello', 'world');
// helloworldjoins
strp.joins('hello', 'world');
// hello worldjoinln
strp.joinln('hello', 'world');
// hello
// worldlpad
strp.lpad('100',10,'0');
// 0000000100rpad
strp.rpad('100',10,'0');
// 1000000000ucfirst
strp.ucfirst('hello world');
// Hello worldlcfirst
strp.ucfirst('HELLO WORLD');
// hELLO WORLDshuffle
strp.shuffle('hello world');
// ol wohldrewlreverse
strp.reverse('hello world');
// dlrow wollehLISECE
The MIT License
Copyright (c) 2013 The strp Authors
See the LICENSE file for details.
