<commit_before># ermrestjs

ERMrest client library in JavaScript

This project is a work in progress. The API is in an early design stage.<commit_msg>Update readme file to include how to build and test<commit_after># ermrestjs

ERMrest client library in JavaScript

This project is a work in progress. The API is in an early design stage.


## How to Build

Get the source and run `make`. See `make help` for information on alternative make targets.

```sh
git clone https://github.com/informatics-isi-edu/ermrestjs.git
cd ermrestjs
make all
```

## How to Test

Before running the test cases you need to set the environment variables.

```sh
export ERMREST_URL=https://dev.isrd.isi.edu/ermrest
export AUTH_COOKIE=YOUR_ERMREST_COOKIE
```

To execute test case run following command

```sh
make test
```

This command internally invokes the `node test/jasmine-runner.js` script.
{'fraction_non_alphanumeric': 0.07411630558722919, 'fraction_numerical': 0.0, 'mean_word_length': 4.4875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1581051', 'n_tokens_mistral': 274, 'n_tokens_neox': 259, 'n_words': 116}