<commit_before># hatp

[![Build Status](https://travis-ci.org/laosb/hatp.svg?branch=master)](https://travis-ci.org/laosb/hatp)

The transpiler which transpile HaLang to Javascript. Currently not for prod.

## Usage

This package exports a `convert` function as default.

```js
import convert from 'hatp';
convert(`很惭愧 这是注释`);
```<commit_msg>README update.<commit_after># hatp

[![Build Status](https://travis-ci.org/laosb/hatp.svg?branch=master)](https://travis-ci.org/laosb/hatp)

The transpiler which transpile [HaLang](https://laosb.github.io/halang) to Javascript. Currently not for prod.

## Usage

This package exports a `convert` function as default.

```js
import convert from 'hatp';
convert(`很惭愧 这是注释`);
```

You can also use this package in CLI:

```
$ hatp -o built/
测试.ha -> built/测试.js
```

See more CLI info by `hatp -h`.
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.0, 'mean_word_length': 4.617449664429531, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 5, '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': '2903740', 'n_tokens_mistral': 329, 'n_tokens_neox': 318, 'n_words': 83}