stringfy

0.0.12 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i stringfy

Weekly Downloads

4

Version

0.0.12

License

ISC

Last publish

Collaborators

  • kchan