1.1.4 • Published 6 years ago
@distantbluesoftware/dbsutil v1.1.4
@distantbluesoftware/dbsutil
A bunch of helper utilities that probably exist elsewhere, but also exist here.
Install
yarn add @distantbluesoftware/dbsutil
Usage
import utils from 'dbsutil';
Utilities
slugify
Turns a string into a slug; useful for generating URLs.
iterator
Also slug-related: if there is already an existing slug, the iterator adds a digit to the end of it.
pad
Pads out a number to a certain amount of leading zeroes.
removeWhitespace
Removes all white space from a string.