A collection of utilities, classes, functions and abstracts made for the browser and babel compatible.
npm i @squirrel-forge/ui-util
import { Class, function } from '@squirrel-forge/ui-util';
The documentation is also included in the package.
Package contents listing by language and namespace.
- Javascript
- Animation
- Array
- [Data]
- [LStorage]
- [saveBlobAs()]
- Dev
- DOM
- Error
- Events
- bindMultiClick()
- bindNodeList()
- CallbackEvents
- [copyToClipboard()]
- [copyToClipboardFallback()]
- debounce()
- docReady()
- Draggables()
- EventDispatcher
- [hasTouch()]
- getFocusable
- tabFocusLock
- HTTP
- Layout
- getScrollbarWidth()
- getVisibility()
- [measureText()]
- Logic
- Number
- Object
- cloneObject()
- isPojo()
- mergeObject()
- [objectEmpty()]
- strAccess()
- strCreate()
- String
- colorand()
- escapeHTML()
- [hex2rgb()]
- isValidFunctionName()
- normalizePath()
- simpleReplace()
- str2node()
- str2time()
- strand()
- [strCamel2Dash()]
- strSlug()
- [strStyle()]
- trimChar()
- ucfirst()
- Var
If you encounter any issues, please report here.
Check the sourcecode on github for detailed comments.