stringfy
**WIP** A collection of nice shits for String manipulations.
Last updated 5 years ago by kchan .
ISC · Original npm · Tarball · package.json
$ cnpm install stringfy 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.12                                ...           latest (5 years ago)

3 Versions

  • 0.0.12                                ...           5 years ago
  • 0.0.11                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |