qlite

0.1.0-pre-alpha • Public • Published

QLite

A little library to operate DOM like jQuery, as a subset of jQuery.

Why

  • jQuery is thriftless as its size and several less used functions.
  • Zepto updates slowly, and leaves unsolved issues.
  • Focus one thing, keey a tiny core to operate DOM, without collection operation, animation, network and something else.

For example, I hope to separate Ajax to use fetch/axios instead.

API

  • QLite

TODO

  • addClass/removeClass/hasClass/toggleClass
  • before/after
  • append/appendTo/prepend/prependTo
  • val/attr/prop/data/removeAttr/removeProp/removeData
  • on/off/one
  • children/contents
  • css
  • ready
  • remove
  • width/height/innerWidth/innerHeight
  • insertBefore/insertAfter
  • offset/offsetParent
  • position
  • prev/next/siblings
  • scrollLeft/scrollTop

Package Sidebar

Install

npm i qlite

Weekly Downloads

0

Version

0.1.0-pre-alpha

License

MIT

Last publish

Collaborators

  • teabyii