0.7.3 • Published 6 years ago

domster v0.7.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Build Status

With performance in mind, domster employs built-in selectors for a jQuery-like experience at 2kb. Forfeiting newer methods in favour of older and better optimised ones, it queries the DOM a lot faster than anything else.

Suitable for IE9+\ https://jsperf.com/domster-vs-qs

Use it via npm i domster or <script src="//unpkg.com/domster"></script>\ If you encounter a bug or require additional functionality, please let us know.

Traversal

  • is
  • first
  • last
  • at (eq)
  • prev
  • next
  • not
  • push (add)
  • ancestor (closest)
  • parent
  • children
  • siblings
  • find
  • filter
  • each
  • size (length)
  • index
  • get

Mutation

  • before
  • after
  • append
  • prepend
  • replace (replaceWith)
  • clone
  • remove
  • empty
  • html
  • text
  • val
  • data
  • attr
  • removeAttr

Style

  • style (css)
  • position
  • offset
  • hasClass
  • addClass
  • removeClass
  • toggleClass

Events

  • on
  • once (one)
  • off
  • trigger

Utility

  • each
  • type
  • extend
0.7.3

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.5

6 years ago

0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.14

6 years ago

0.3.13

6 years ago

0.3.12

6 years ago

0.3.11

6 years ago

0.3.10

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago