<commit_before># npm-boilerplate [![Build Status](https://img.shields.io/travis/yuanqing/npm-boilerplate.svg?style=flat)](https://travis-ci.org/yuanqing/npm-boilerplate)

> Barebones boilerplate using [`npm run-script`](https://www.npmjs.org/doc/cli/npm-run-script.html).

## Commands

### `npm run lint`

Lint `index.js`, `test/*.spec.js`, `benchmark.js`, `karma.conf.js` with [JSHint](http://jshint.com/docs/).

### `npm test`

Run the [Jasmine](http://jasmine.github.io/2.0/introduction.html) tests in `test/`, and write code coverage reports generated by [Istanbul](http://gotwarlost.github.io/istanbul/) into `coverage/`.

### `npm run test-b`

Run the Jasmine tests in `test/` on [PhantomJS](http://phantomjs.org/) via [Karma](http://karma-runner.github.io/), and write code coverage reports generated by Istanbul into `coverage/`.

### `npm run bench`

Run the [Matcha](https://github.com/logicalparadox/matcha) benchmarks in `benchmark.js`.

### `npm run dist`

[Browserify](http://browserify.org/) `index.js` as a `standalone` module, and write `foo.js` (with source map) and `foo.min.js` (minified) into `dist/`.

### `npm run build`

Run all of the above tasks.

---

You should probably choose between one of the `test` and `test-b` tasks, and edit accordingly. Use `test-b` if you need to work with the DOM, otherwise use `test` (which is faster).<commit_msg>Edit README.md<commit_after># npm-boilerplate [![Build Status](https://img.shields.io/travis/yuanqing/npm-boilerplate.svg?style=flat)](https://travis-ci.org/yuanqing/npm-boilerplate)

> Barebones boilerplate using [`npm run-script`](https://www.npmjs.org/doc/cli/npm-run-script.html).

## Tooling

- Linting: **[JSHint](http://jshint.com/docs/)**
- Tests: **[Tape](https://github.com/substack/tape)**, **[Karma](http://karma-runner.github.io/)**, **[PhantomJS](http://phantomjs.org/)**
- Code coverage: **[Istanbul](http://gotwarlost.github.io/istanbul/)**
- Benchmarking: **[Matcha](https://github.com/logicalparadox/matcha)**
- Bundling: **[Browserify](http://browserify.org/)**, **[UglifyJS](https://github.com/mishoo/UglifyJS2)**

## Commands

### `npm run lint`

Lint `index.js`, `test/*.js`, `benchmark/*.js`, and `karma.conf.js`.

### `npm test`

Run the tests in `test/`, and write code coverage reports into `coverage/`.

### `npm run test-browser`

Run the tests in `test/` in the browser, and write code coverage reports into `coverage/`.

### `npm run benchmark`

Run the benchmarks in `benchmark/`.

### `npm run dist`

Bundle `index.js` as a standalone module, and write `foo.js` (with source map) and `foo.min.js` (minified) into `dist/`.

### `npm run build`

Run all of the above tasks.

## License

[MIT](https://github.com/yuanqing/npm-boilerplate/blob/master/LICENSE)
{'fraction_non_alphanumeric': 0.19318593693367161, 'fraction_numerical': 0.0010873504893077202, 'mean_word_length': 4.531062124248497, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 11, 'lorem ipsum': 0, 'www.': 2, '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': '4832011', 'n_tokens_mistral': 1045, 'n_tokens_neox': 976, 'n_words': 235}