<commit_before># HTML divide

## Install

```
npm i html-divide
```

## Usage

For example, Create index.html such as the following

```html
<!DOCTYPE html>
<html>
<head>
</head>
<body>

  <!-- divide:head -->
  <p>head</p>
  <!-- enddivide -->

  <!-- divide:body -->
  <p>body</p>
  <!-- enddivide -->

</body>
</html>
```

Use this

```js
'use strict';

const divide = require('..'),
  assert = require('assert');

divide('.index.html', (err, data) => {
  if (err) {
    console.error(err);
    process.exit(1);
  }

  console.log(data);  // output
});
```

Output

```js
{ head: '\n  <p>head</p>\n  ', body: '\n  <p>body</p>\n  ' }
```
<commit_msg>Fix readme<commit_after># HTML divide

## Install

```
npm i html-divide
```

## Usage

For example, Create index.html such as the following

```html
<!DOCTYPE html>
<html>
<head>
</head>
<body>

  <!-- divide:head -->
  <p>head</p>
  <!-- enddivide -->

  <!-- divide:body -->
  <p>body</p>
  <!-- enddivide -->

</body>
</html>
```

Use this

```js
'use strict';

const divide = require('html-divide');

divide('.index.html', (err, data) => {
  if (err) {
    console.error(err);
    process.exit(1);
  }

  console.log(data);  // output
});
```

Output

```js
{ head: '\n  <p>head</p>\n  ', body: '\n  <p>body</p>\n  ' }
```

{'fraction_non_alphanumeric': 0.25390625, 'fraction_numerical': 0.0015625, 'mean_word_length': 2.789940828402367, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 43, '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': '585632', 'n_tokens_mistral': 542, 'n_tokens_neox': 509, 'n_words': 115}