<commit_before># Xtract

Extract data from DOM, easily. Useful for back-end generated contents and **SEO-friendly** rich apps.

```
npm install xtract
```

## Requirements

  - This works on browser, not Node. But if you use *jsdom*, you can.
  - Requires jQuery.

SEO is the main problem of modern web. And we have problems with passing the data from
**HTML to JavaScript**. Your **back-end** generated data is need to be mapped to JavaScript
and **Xtract** helps you to do that.

```html
<p id="profile"><commit_msg>fixed confusion( node ) danger with DOMNode<commit_after># Xtract

Extract data from DOM, easily. Useful for back-end generated contents and **SEO-friendly** rich apps.

```
npm install xtract
```

## Requirements

  - This works on browser, not node.js. But if you use *jsdom*, you can.
  - Requires jQuery.

SEO is the main problem of modern web. And we have problems with passing the data from
**HTML to JavaScript**. Your **back-end** generated data is need to be mapped to JavaScript
and **Xtract** helps you to do that.

```html
<p id="profile">
{'fraction_non_alphanumeric': 0.1038353601496726, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3645191', 'n_tokens_mistral': 316, 'n_tokens_neox': 307, 'n_words': 156}