antiquery

1.4.2 • Public • Published

Anti-Query

You dont need any Big-Ass-Query that weights about 50KB, this library is enough for your needs (probably)

Whats this

this is DOM manipulation language

Installation

install by typing

yarn add antiquery --save
# or  
npm install antiquery --save

What is the usage

to use as import/export module use

import $ from 'antiquery'

for older javascript use:

// es2015 compiled with babel
const $ = require('antiquery/es2015').default
 
// es6
const $ = require('antiquery').default

for browser just use with webpack/backpack dont just include as one of 100's script src's like in 20'th century

...

then you can use like

$('div.golden')
  .removeClass('golden')
  .css({ background: 'black', color: 'white' })
  .text('hello')
  .animate('blink')
  .show()

What is ready?

  • what document.querySelector supports (a lot in current browsers)
  • chaining next methods
  • methods:
    • get (index: Number? or returns all)
    • each (fn: Function)
    • parents
    • children
    • find
    • remove
    • addClass (className: String)
    • removeClass (className: String)
    • css (css: Object)
    • hide
    • show
    • text (text: String)
    • html (html: String)
    • animate (className: String, ms: Number)

animate adds css class for duration of ms

Enjoy

by Jacek Pietal github.com/Prozi

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.4.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.4.20
1.4.10
1.4.00
1.3.50
1.3.40
1.3.33
1.3.10
1.3.00
1.2.90
1.2.81
1.2.70
1.2.60
1.2.50
1.2.40
1.2.30
1.2.20
1.2.10
1.2.01
1.1.30
1.1.20
1.1.10
1.1.00
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i antiquery

Weekly Downloads

5

Version

1.4.2

License

MIT

Unpacked Size

8.25 kB

Total Files

4

Last publish

Collaborators

  • jacekpietal
  • pietal.dev