<commit_before>gulp-develop-server
====================

> run your node.js server and automatically restart with gulp.

[![Build Status](http://img.shields.io/travis/narirou/gulp-develop-server/master.svg?style=flat-square)](https://travis-ci.org/narirou/gulp-develop-server)
[![Npm Modules](http://img.shields.io/npm/v/gulp-develop-server.svg?style=flat-square)](https://www.npmjs.org/package/gulp-develop-server)
[![MIT Licensed](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://opensource.org/licenses/MIT)


gulp-develop-server is a development assistant for node.js server that runs
the process and automatically restarts it when a file is modified. 


installation
------------

```bash
npm install gulp-develop-server --save-dev
```



usage
-----

```javascript
var gulp   = require( 'gulp' ),
    server = require( 'gulp-develop-server' );

// run server
gulp.task( 'server:start', function() {
    server.listen( { path: 'app.js' } );
});

// restart server if app.js changed
gulp.task( 'sever:restart', function() {
    gulp.watch( [ 'app.js' ], server.restart )
});<commit_msg>Fix typo in Readme<commit_after>gulp-develop-server
====================

> run your node.js server and automatically restart with gulp.

[![Build Status](http://img.shields.io/travis/narirou/gulp-develop-server/master.svg?style=flat-square)](https://travis-ci.org/narirou/gulp-develop-server)
[![Npm Modules](http://img.shields.io/npm/v/gulp-develop-server.svg?style=flat-square)](https://www.npmjs.org/package/gulp-develop-server)
[![MIT Licensed](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](http://opensource.org/licenses/MIT)


gulp-develop-server is a development assistant for node.js server that runs
the process and automatically restarts it when a file is modified. 


installation
------------

```bash
npm install gulp-develop-server --save-dev
```



usage
-----

```javascript
var gulp   = require( 'gulp' ),
    server = require( 'gulp-develop-server' );

// run server
gulp.task( 'server:start', function() {
    server.listen( { path: 'app.js' } );
});

// restart server if app.js changed
gulp.task( 'server:restart', function() {
    gulp.watch( [ 'app.js' ], server.restart )
});
{'fraction_non_alphanumeric': 0.19553571428571428, 'fraction_numerical': 0.0, 'mean_word_length': 4.116438356164384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '697210', 'n_tokens_mistral': 779, 'n_tokens_neox': 741, 'n_words': 145}