@foragefox/doubledash
v1.2.6
Published
DoubleDash is simple utility library meant to help transition people off of jQuery.
Downloads
18
Readme
Double Dash
Double Dash is simple utility library meant to help transition people off of jQuery.
Installation
npm install @foragefox/doubledash
Usage
import __ from '@foragefox/doubledash';
Categories
We orginiaze our functions into categories:
- animate
- dom
- event
- form
- lang
- location
- size
- template
Namespace structure
The name space is broken down by the library, category and function name.
{library}.{category}.{function}
eg.
__.dom.parents(element, target)
library = __
category = dom
function = parents
Documentation
Find our docs here
| Animate | Dom | Event | Form | Lang | Location | | ------------------------------------------ | ---------------------------------- | ---------------------------------- | ------------------------------------------- | ----------------------------------------- | --------------------------------------- | | animation() | after() | off() | parseForm() | escapeHtml() | offset() | | bounce() | append() | on() | populateForm() | extend() | position() | | bounceIn() | before() | once() | | isArray() | | | bounceOut() | children() | trigger() | | isBoolean() | | | fadeIn() | clone() | | | isEmpty() | | | fadeOut() | closest() | | | isFunction() | | | flash() | contains() | | | isJson() | | | heartBeat() | create() | | | isNull() | | | jello() | empty() | | | isNumber() | | | pulse() | find() | | | isObject() | | | rotateIn() | findOne() | | | isRegExp() | | | rotateOut() | hide() | | | isSet() | | | rubberBand() | next() | | | isString() | | | shake() | parents() | | | isUndefined() | | | slideIn() | prepend() | | | | slideOut() | prev() | | | | swing() | remove() | | | | tada() | show() | | | | wobble() | siblings() | | | | zoomingIn() | toggle() | | | | zoomingOut() | | | |
| Size | Template | | ----------------------------------------- | --------------------------------------- | | width() | supplant() | | outerWidth() | | | setWidth() | | | height() | | | outerHeight() | | | setHeight() | |
Testing
Before running npm run test
, make sure you add the temporary option in the package.json: "type": "module"