Power utility pack
Combines the following javascript utility packs under one roof:
The main namespace now has the functions from all these utils.
We have also added underscore.string
functions to string.js
for a fully power chaining API on strings!
We even include String.prototype
methods which return string values such as toLocaleUpperCase
Install
- Yarn:
yarn add powerdash
- Npm:
npm add powerdash
Usage
const _ = require('powerdash')
_.humanize('abc-123')
See examples in test/demo.js
const _ = // string.jsvar hm = _console var alpha = _console // lodash-addonsvar c = _;console // underscore.stringvar l =_console // lodashvar mergedObj = _console
You can also use S
which is combined with underscore.string
functions added for even more chaining power!
var S = _S var chainRes = sconsole // -hello-you var cleaned = _console // aakkonen // S combined with underscore.string and String.prototypevar chainCombi = sconsole // hello-you-aakkonen
Access original isolated namespaces
_origS // S_origstring // underscore.string_origaddons // lodash-addons // or using `o` alias_oaddons // using original underscore.string_ovalue
Enjoy :)
License
MIT