<commit_before># server-summary
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Downloads][downloads-image]][downloads-url]

Log basic server information after an http server start as
[ndjson](http://ndjson.org/).

## Installation
```bash
$ npm install server-summary
```

## Usage
```js
const serverSummary = require('server-summary')
const http = require('http')

process.env.NODE_ENV = 'development'
http.createServer().listen(null, serverSummary)
//
// Port 61771
// Env  development
//
```

## Why?
Knowing on what port your server is listening is nice to have. This module
logs some basic information after your server has started to `stdout`.

## License
[MIT](https://tldrlegal.com/license/mit-license)

[npm-image]: https://img.shields.io/npm/v/server-summary.svg?style=flat-square
[npm-url]: https://npmjs.org/package/server-summary
[travis-image]: https://img.shields.io/travis/yoshuawuyts/server-summary.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/server-summary
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/server-summary.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/server-summary?branch=master
[downloads-image]: http://img.shields.io/npm/dm/server-summary.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/server-summary
<commit_msg>readme: fix example<commit_after># server-summary
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Downloads][downloads-image]][downloads-url]

Log basic server information after an http server start as
[ndjson](http://ndjson.org/).

## Installation
```bash
$ npm install server-summary
```

## Usage
```js
const serverSummary = require('server-summary')
const http = require('http')

process.env.NODE_ENV = 'development'
http.createServer().listen(null, serverSummary)
// {"port":63681,"type":"static"}
// {"env":"test","type":"static"}
```

## Why?
Knowing on what port your server is listening is nice to have. This module
logs some basic information after your server has started to `stdout`.

## License
[MIT](https://tldrlegal.com/license/mit-license)

[npm-image]: https://img.shields.io/npm/v/server-summary.svg?style=flat-square
[npm-url]: https://npmjs.org/package/server-summary
[travis-image]: https://img.shields.io/travis/yoshuawuyts/server-summary.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/server-summary
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/server-summary.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/server-summary?branch=master
[downloads-image]: http://img.shields.io/npm/dm/server-summary.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/server-summary

{'fraction_non_alphanumeric': 0.17649098474341193, 'fraction_numerical': 0.0034674063800277394, 'mean_word_length': 5.740654205607477, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '691185', 'n_tokens_mistral': 1019, 'n_tokens_neox': 977, 'n_words': 170}