<commit_before><p align="center"><img src="https://cloud.githubusercontent.com/assets/2805249/18409938/3bc3fa0e-7798-11e6-81e4-c7e8e69bf90c.jpg" alt="Qoob logo"></p>
<h1 align="center">Qoob (/kjuːb/)</h1>
<p align="center">A lightweight DOM manipulation library.</p>

## Examples

### CSS manipulation
```javascript
Qoob.css('p', {
    color: 'red',
    fontWeight: 'bold',
});
```

### Events
```javascript
Qoob.on('.Button', 'click', function(e) {
    alert('Button was clicked!');
});
```

### Iteration + HTML manipulation
```javascript
Qoob.each('p', function(element, index) {
    Qoob.html(element, 'I am at index ' + index);
});
```

### Element creation
```javascript
let p_tag = Qoob.make('p', 'Hello world!');

Qoob.append('body', p_tag);
```

and much more...

## Install

### NPM
```bash
$ npm install --save qoob
```

### Bower
```bash
$ bower install qoob
```

### CDN
#### Development
```
https://cdn.rawgit.com/enzyme/qoob/master/dist/qoob.js
```
#### Production
```
https://cdn.rawgit.com/enzyme/qoob/master/dist/qoob.min.js
```

## Function reference

| Name | Parameters | Description |
| --- | --- | --- |
| **addClass** | `selector, class_name` | Add the given class to the element(s) matching the selector. |
| **ancestor** | `selector, ancestor_selector` | Get an array of ancestors matching the ancestor_selector for the element(s) matching the selector. |
| **append** | `selector, child_element` | Append the child element given to the element(s) matching the selector. |
| **attr** | `selector, attribute, value = null` | Get or set the given attribute for the element(s) matching the selector. |
| **children** | `selector, child_selector = null` | Get an array of children for the element(s) matching the selector. |
| **css** | `selector, properties = {}` | Set the css on the element(s) matching the selector. |<commit_msg>Update readme.<commit_after><p align="center"><img src="https://cloud.githubusercontent.com/assets/2805249/18409938/3bc3fa0e-7798-11e6-81e4-c7e8e69bf90c.jpg" alt="Qoob logo"></p>
<h1 align="center">Qoob (/kjuːb/)</h1>
<p align="center">A lightweight DOM manipulation library.</p>

## Examples

### CSS manipulation
```javascript
Qoob.css('p', {
    color: 'red',
    fontWeight: 'bold',
});
```

### Events
```javascript
Qoob.on('.Button', 'click', function(e) {
    alert('Button was clicked!');
});
```

### Iteration + HTML manipulation
```javascript
Qoob.each('p', function(element, index) {
    Qoob.html(element, 'I am at index ' + index);
});
```

### Element creation
```javascript
let p_tag = Qoob.make('p', 'Hello world!');

Qoob.append('body', p_tag);
```

and much more...

## Install

### NPM
```bash
$ npm install --save qoob
```

### Bower
```bash
$ bower install qoob
```

### CDN
#### Development
```
https://cdn.rawgit.com/enzyme/qoob/master/dist/qoob.js
```
#### Production
```
https://cdn.rawgit.com/enzyme/qoob/master/dist/qoob.min.js
```

## Function reference

| Name | Parameters | Description |
| --- | --- | --- |
| **addClass** | `selector, class_name` | Add the given class to the element(s) matching the selector. |
| **ancestor** | `selector, ancestor_selector` | Get an array of ancestors matching the ancestor_selector for the element(s) matching the selector. |
| **append** | `selector, child_element` | Append the child element given to the element(s) matching the selector. |
| **attr** | `selector, attribute, value = null` | Get or set the given attribute for the element(s) matching the selector. |
| **children** | `selector, child_selector = null` | Get an array of children for the element(s) matching the selector. |
| **clone** | `selector` | Clone the given element(s) matching the selector and return them as an array. |
| **css** | `selector, properties = {}` | Set the css on the element(s) matching the selector. |
{'fraction_non_alphanumeric': 0.18753273965426925, 'fraction_numerical': 0.01885804085908853, 'mean_word_length': 4.510822510822511, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1234300', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1259, 'n_words': 350}