npm.io
0.0.12 • Published 10 years ago

stringfy

Licence
ISC
Version
0.0.12
Deps
1
Vulns
0
Weekly
0

Stringfy

WIP A collection of nice shits for String manipulations.

Introduction

import stringfy from 'stringfy'

// returned string `edcba`
stringfy('abcde').reverse().val()

// returned string `getElementById`
stringfy('get-element-by-id').camelCase().val()

// returned string `hello`
stringfy(' hello   ').trim().val()

// return words count => 3, with CJK support
stringfy('呆死ki').count()

// return slugify string, with CJK support
// like 'I love cat' => 'i-love-cat'
string('空彩观测').slug().val()

License

MIT.