@beautiful-code/string-utils
v0.2.3
Published
Library for manipulating strings.
Downloads
87
Readme
String Utils
This is a simple, string manipulation and comparison library. This is intended to be used imported via Node.js (or a bundler like Webpack for client side).
View On
Installation
Using NPM or Yarn
npm install '@beautiful-code/string-utils'
yard add '@beautiful-code/string-utils'
Usage
Basic Usage
const StringUtils = require('@beautiful-code/string-utils').StringUtils
let example = 'this is a string'
StringUtils.contains('string') // true
example = StringUtils.toCamelCase(example) // thisIsAString
###Stream API
const stream = require('@beautiful-code/string-utils').stream
let example = 'this is a string'
example = stream(example).toCamelCase().capitalize().get() // ThisIsAString
const StringStream = require('string-utils').StringStream