0.2.3 • Published 5 years ago

@beautiful-code/string-utils v0.2.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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