Basic helper functions without any external dependecies
npm install xassistnpm install xassist.
xaglobal is exported:
html
`
API
- xassist-object
- object()
- object().onChange()
- object().clone()
- object().assign()
- object().mergeUnique()
- object().toArray()
- object().toMapArray()
- object().forEach()
- object().map()
- xassist-csv
- csv()
- csv().toArray()
- csv().toObject()
- csv().fromArray()
- csv().fromObject()
- xassist-array
- array()
- array().pushUnique()
- array().groupSequence()
- array().replaceNull()
- xassist-eventdispatcher
- EventDispatcher()
- EventDispatcher().registerEvent()
- EventDispatcher().hasEvent()
- EventDispatcher().on()
- EventDispatcher().once()
- EventDispatcher().off()
- EventDispatcher().fire()
- xassist-main
- id()
- ready()
- template()
- xassist-dom
- dom()
- dom().addClass()
- dom().removeClass()
- dom().hasClass()
- dom().replaceClass()
- dom().toggleClass()
- dom().attr()
- dom().parents()
- dom().isVisible()
- dom().getDimensions()
Dependencies
- @xassist/xassist-array: helper functions for javascript arrays
- @xassist/xassist-csv: load csv files from remote and create csv files
- @xassist/xassist-eventdispatcher: general eventdispatcher class
- @xassist/xassist-main: main functions with onready, id-generator and templating engine
- @xassist/xassist-object: general helper functions for JavaScript objects
DevDependencies
- csv2readme: read csv file with fixed format and parse a readme markdown file
- jsdom: A JavaScript implementation of many web standards
- rimraf: A deep deletion module for node (like rm -rf`)