0.1.4 • Published 4 years ago
@ssdcode/js-mutators v0.1.4
JS Mutators
Set of methods providing functionality to mutate the given value.
Installation
npm install @ssdcode/js-mutators --save-dev
Import relevant methods using ES6 import statement
import { toUpperCase, toLowerCase, slug } from 'js-mutators';
Available methods
toUpperCase
Converts string to uppercase. See String.prototype.toUpperCase()
toLowerCase
Converts string to lowercase. See String.prototype.toLowerCase()
slug
Converts string to lower case, hyphen concatenated slug.
Tests
You can execute tests by calling
npm run test
Contributions
Contributions are welcome - please make sure all PRs have their associated test.