zap-base-js-string
v1.1.0
Published
just translating (and testing) some old code to ES6, nothing to see here ;-)
Downloads
3
Readme
zap-base-js-string
just translating (and testing) some old code to ES6, nothing to see here ;-)
Install
$ npm install zap-base-js-string
Usage
import {
capitalize,
capitalizeFirstLetter,
camelize,
dasherize,
} from 'zap-base-js-string';
capitalize
capitalize('test string'); // 'Test String'
capitalizeFirstLetter
capitalizeFirstLetter('test string'); // 'Test string'
camelize
camelize('test-string'); // 'testString'
dasherize
dasherize('TestString'); // 'test-string'