1.3.1 • Published 9 years ago

doc-js v1.3.1

Weekly downloads
130
License
-
Repository
github
Last release
9 years ago

doc

What

a small, simple, and fast DOM helper library

Why?

A few commonly used dom traverstal and event binding techniques are not easy to write in pure DOM, this provides a simple way to do them.

Usage

doc can be used very much like jQuery:

var doc = require('doc-js');

doc(target); // NodeList

where 'target' can be a CSS selector, a HTMLElement, or a list of elements, eg:

doc('.things'); // List of nodes that have the class 'things'

There are two versions of every function; a legacy way, and a fluent way.

Legacy way example:

doc.is(target, selector);

Fluent way example:

doc(target).is(selector);

Goals

Easy to use

Tiny

less than 1k minified

about 1.3k min'd and gzipped (I added features..)

Fast

http://jsperf.com/doc-vs-jquery/8

Browser support

Works in browsers.

Also works in IE >= 8 when you include a polyfill script in your page, like this one:

    <script src="//cdn.polyfill.io/v1/polyfill.min.js"></script>

License

MIT

1.3.1

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.13

9 years ago

1.1.12

9 years ago

1.1.11

9 years ago

1.1.10

9 years ago

1.1.9

9 years ago

1.1.8

9 years ago

1.1.7

9 years ago

1.1.6

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.4.7

10 years ago

0.4.6

10 years ago

0.4.5

10 years ago

0.4.4

10 years ago

0.4.3

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.2

10 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago