<commit_before>[![npm](https://nodei.co/npm/unist-builder-blueprint-cli.png)](https://npmjs.com/package/unist-builder-blueprint-cli)

# unist-builder-blueprint-cli

[![Build Status][travis-badge]][travis] [![Dependency Status][david-badge]][david]

Convert [Unist] trees to [unist-builder] notation.

[unist]:  https://github.com/wooorm/unist
[unist-builder]: https://github.com/eush77/unist-builder

[travis]: https://travis-ci.org/eush77/unist-builder-blueprint-cli
[travis-badge]: https://travis-ci.org/eush77/unist-builder-blueprint-cli.svg?branch=master
[david]: https://david-dm.org/eush77/unist-builder-blueprint-cli
[david-badge]: https://david-dm.org/eush77/unist-builder-blueprint-cli.png

## Example

Simple example:

```js
$ unist-builder-blueprint input.json
u('node', { root: true }, [
    u('node', 'foo'),
    u('node', 'bar')
])
```

Set formatting options for [escodegen]:

```js
$ unist-builder-blueprint --format.indent.style="  " --format.quotes=double input.json
u("node", { root: true }, [
  u("node", "foo"),
  u("node", "bar")
])
```

## CLI

```
Usage:  unist-builder-blueprint [--builder <u>] [escodegen_opts]... [<file>]
```

Convert `<file>` (stdin by default) to [unist-builder] notation.

Accepts options for [escodegen]. See [escodegen wiki] for details.

```
Options:
  --builder <u>  Builder function to use (default: "u")
```

[escodegen]: https://github.com/estools/escodegen
[escodegen wiki]: https://github.com/estools/escodegen/wiki/API

## API

See [unist-builder-blueprint].

[unist-builder-blueprint]: https://github.com/eush77/unist-builder-blueprint

## Install

```
npm install unist-builder-blueprint-cli
```

## License

MIT<commit_msg>readme: add related<commit_after>[![npm](https://nodei.co/npm/unist-builder-blueprint-cli.png)](https://npmjs.com/package/unist-builder-blueprint-cli)

# unist-builder-blueprint-cli

[![Build Status][travis-badge]][travis] [![Dependency Status][david-badge]][david]

Convert [Unist] trees to [unist-builder] notation.

[unist]:  https://github.com/wooorm/unist
[unist-builder]: https://github.com/eush77/unist-builder

[travis]: https://travis-ci.org/eush77/unist-builder-blueprint-cli
[travis-badge]: https://travis-ci.org/eush77/unist-builder-blueprint-cli.svg?branch=master
[david]: https://david-dm.org/eush77/unist-builder-blueprint-cli
[david-badge]: https://david-dm.org/eush77/unist-builder-blueprint-cli.png

## Example

Simple example:

```js
$ unist-builder-blueprint input.json
u('node', { root: true }, [
    u('node', 'foo'),
    u('node', 'bar')
])
```

Set formatting options for [escodegen]:

```js
$ unist-builder-blueprint --format.indent.style="  " --format.quotes=double input.json
u("node", { root: true }, [
  u("node", "foo"),
  u("node", "bar")
])
```

## CLI

```
Usage:  unist-builder-blueprint [--builder <u>] [escodegen_opts]... [<file>]
```

Convert `<file>` (stdin by default) to [unist-builder] notation.

Accepts options for [escodegen]. See [escodegen wiki] for details.

```
Options:
  --builder <u>  Builder function to use (default: "u")
```

[escodegen]: https://github.com/estools/escodegen
[escodegen wiki]: https://github.com/estools/escodegen/wiki/API

## API

See [unist-builder-blueprint].

## Related

- [unist-builder] — helper for creating Unist trees.
- [unist-builder-blueprint] — API for this module.

[unist-builder]: https://github.com/eush77/unist-builder
[unist-builder-blueprint]: https://github.com/eush77/unist-builder-blueprint

## Install

```
npm install unist-builder-blueprint-cli
```

## License

MIT
{'fraction_non_alphanumeric': 0.1988155668358714, 'fraction_numerical': 0.007332205301748449, 'mean_word_length': 4.612341772151899, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 23, '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': '841681', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1331, 'n_words': 223}