<commit_before># Popsicle Server

[![NPM version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

Automatically connect HTTP(s) servers to a randomly available port for each request. Makes testing your Express/Connect/Node servers easy!

## Installation

```sh
npm install popsicle-server --save
```

## Usage

```js
var request = require('popsicle')
var server = require('popsicle-server')
var express = require('express')
var app = express()

request('/users')
  .use(server(app))
  .then(function (res) {
    console.log(res.status) //=> 404
  })
```

## License

MIT license

[npm-image]: https://img.shields.io/npm/v/popsicle-server.svg?style=flat
[npm-url]: https://npmjs.org/package/popsicle-server
[travis-image]: https://img.shields.io/travis/blakeembrey/popsicle-server.svg?style=flat
[travis-url]: https://travis-ci.org/blakeembrey/popsicle-server<commit_msg>remove `sh` code syntax<commit_after># Popsicle Server

[![NPM version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

Automatically connect HTTP(s) servers to a randomly available port for each request. Makes testing your Express/Connect/Node servers easy!

## Installation

```
npm install popsicle-server --save
```

## Usage

```js
var request = require('popsicle')
var server = require('popsicle-server')
var express = require('express')
var app = express()

request('/users')
  .use(server(app))
  .then(function (res) {
    console.log(res.status) //=> 404
  })
```

## License

MIT license

[npm-image]: https://img.shields.io/npm/v/popsicle-server.svg?style=flat
[npm-url]: https://npmjs.org/package/popsicle-server
[travis-image]: https://img.shields.io/travis/blakeembrey/popsicle-server.svg?style=flat
[travis-url]: https://travis-ci.org/blakeembrey/popsicle-server
{'fraction_non_alphanumeric': 0.176056338028169, 'fraction_numerical': 0.0030181086519114686, 'mean_word_length': 5.375, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5054244', 'n_tokens_mistral': 723, 'n_tokens_neox': 698, 'n_words': 133}