<commit_before># [gulp](http://gulpjs.com/)-monitorctrlc [![Build Status](https://travis-ci.org/pandell/gulp-monitorctrlc.svg?branch=master)](https://travis-ci.org/pandell/gulp-monitorctrlc) [![devDependencies Status](https://david-dm.org/pandell/gulp-monitorctrlc/dev-status.svg)](https://david-dm.org/pandell/gulp-monitorctrlc#info=devDependencies)

> Prevent SIGINT on Ctrl+C

This function will prevent sending of `SIGINT` signal when `Ctrl+C` is pressed. Instead, the specified (or default) callback will be invoked.

Preventing `SIGINT` in projects that are using `gulp.watch` on Windows will suppress the annoying `Terminate batch job (Y/N)?` prompt after `Ctrl+C`. This gives your gulp watcher consistent behavior across all platforms.

## Install

```sh
$ npm install --save-dev gulp-monitorctrlc
```


## Usage

```js
var gulp = require('gulp');
var monitorCtrlC = require('gulp-monitorctrlc');

gulp.task('watch', function () {
    monitorCtrlC();
    gulp.watch('**', ['test']);
});
```


## API

Assuming:

```js
var monitorCtrlC = require('gulp-monitorctrlc');
```

### `monitorCtrlC([cb])`

This function will prevent sending of `SIGINT` signal when `Ctrl+C` is pressed. Instead, the specified (or default) callback will be invoked.

#### cb

_Type_: Function  
_Default_: default handler

optional function that will be called when `Ctrl+C` is pressed; if not specified, default handler that prints a message and exits the current process will be used.


## Contributing

1. Clone git repository

2. `npm install` (will install dev dependencies needed by the next step)

3. `npm start` (will start a file system watcher that will re-lint JavaScript and JSON files + re-run all tests when change is detected)

4. Make changes, don't forget to add tests, submit a pull request.


## License

MIT © [Pandell Technology](http://pandell.com/)
<commit_msg>Update names in "README.md"<commit_after># monitorctrlc [![Build Status](https://travis-ci.org/pandell/node-monitorctrlc.svg?branch=master)](https://travis-ci.org/pandell/node-monitorctrlc) [![devDependencies Status](https://david-dm.org/pandell/node-monitorctrlc/dev-status.svg)](https://david-dm.org/pandell/node-monitorctrlc#info=devDependencies)

> Prevent SIGINT on Ctrl+C

This function will prevent sending of `SIGINT` signal when `Ctrl+C` is pressed. Instead, the specified (or default) callback will be invoked.

Preventing `SIGINT` in projects that are (for example) using file system watchers on Windows will suppress the annoying `Terminate batch job (Y/N)?` prompt after `Ctrl+C`. This gives your watcher consistent behavior across all platforms.

## Install

```sh
$ npm install --save-dev monitorctrlc
```


## Usage

```js
var gulp = require('gulp');
var monitorCtrlC = require('monitorctrlc');

gulp.task('watch', function () {
    monitorCtrlC();
    gulp.watch('**', ['test']);
});
```


## API

Assuming:

```js
var monitorCtrlC = require('monitorctrlc');
```

### `monitorCtrlC([cb])`

This function will prevent sending of `SIGINT` signal when `Ctrl+C` is pressed. Instead, the specified (or default) callback will be invoked.

#### cb

_Type_: Function  
_Default_: default handler

optional function that will be called when `Ctrl+C` is pressed; if not specified, default handler that prints a message and exits the current process will be used.


## Contributing

1. Clone git repository

2. `npm install` (will install dev dependencies needed by the next step)

3. `npm start` (will start a file system watcher that will re-lint JavaScript and JSON files + re-run all tests when change is detected)

4. Make changes, don't forget to add tests, submit a pull request.


## License

MIT © [Pandell Technology](http://pandell.com/)

{'fraction_non_alphanumeric': 0.12657887664606288, 'fraction_numerical': 0.002149959688255845, 'mean_word_length': 4.82472613458529, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '1933029', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1116, 'n_words': 404}