noquery

0.0.3 • Public • Published

NoQuery

This project is intended to ease the use of simple JS functionalities and minimize code.

  • No dependencies
  • AMD, Node & browser ready

Install

You can install it with :

    npm install noquery --save

Selectors

    // get by id
    S('#iddiv');
    // get by class name
    S('.classdiv');
    // get by element name
    S('@namediv');
    // get by element tag name
    S('=div');
    // get element by query selector
    S('*div div.inside');
    // getAttribute of name
    S('#iddiv').getAttribute('name');
    // getAttribute of name from nodelist
    S('.classdiv')[0].getAttribute('name');

Elements

    // executes callback if the selector exists
    NQ.exists( selector , callback );

Validation

    // returns true/false based on the given param
    NQ.isEmail( emailID )

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.39latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.39
0.0.20
0.0.10

Package Sidebar

Install

npm i noquery

Weekly Downloads

9

Version

0.0.3

License

ISC

Last publish

Collaborators

  • ashiknesin