<commit_before><img src="https://raw.github.com/alanshaw/david-www/master/david.png" title="David www"/> [![Build Status](https://travis-ci.org/alanshaw/david-www.png?branch=master)](https://travis-ci.org/alanshaw/david-www) [![Dependency Status](https://david-dm.org/alanshaw/david-www.png)](https://david-dm.org/alanshaw/david-www)
=========

Nodejs based web service that tells you when your project npm dependencies are out of date. To use David, your project must include a [package.json](https://npmjs.org/doc/json.html) file in the root of your repository.

Currently David works with package.json files found in _public_ github repositories only.

Getting Started
---------------

With [Node.js](http://nodejs.org/) and [Grunt](http://gruntjs.com/) installed already, do the following:

Install david-www:

	cd /path/to/david-www
	npm install
	grunt

Run david-www:

	node .


Example usage
-------------

View a web page of all dependencies (and their updates, and their versions) for _public_ GitHub repository "grunt-jsio" owned by "alanshaw":

```sh
curl http://localhost:1337/alanshaw/grunt-jsio
```

Get the current build status badge:

```sh
curl http://localhost:1337/alanshaw/grunt-jsio.png
```<commit_msg>Syntax highlight the sh<commit_after><img src="https://raw.github.com/alanshaw/david-www/master/david.png" title="David www"/> [![Build Status](https://travis-ci.org/alanshaw/david-www.png?branch=master)](https://travis-ci.org/alanshaw/david-www) [![Dependency Status](https://david-dm.org/alanshaw/david-www.png)](https://david-dm.org/alanshaw/david-www)
=========

Nodejs based web service that tells you when your project npm dependencies are out of date. To use David, your project must include a [package.json](https://npmjs.org/doc/json.html) file in the root of your repository.

Currently David works with package.json files found in _public_ github repositories only.

Getting Started
---------------

With [Node.js](http://nodejs.org/) and [Grunt](http://gruntjs.com/) installed already, do the following:

Install david-www:

```sh
cd /path/to/david-www
npm install
grunt
```

Run david-www:

```sh
node .
```


Example usage
-------------

View a web page of all dependencies (and their updates, and their versions) for _public_ GitHub repository "grunt-jsio" owned by "alanshaw":

```sh
curl http://localhost:1337/alanshaw/grunt-jsio
```

Get the current build status badge:

```sh
curl http://localhost:1337/alanshaw/grunt-jsio.png
```
{'fraction_non_alphanumeric': 0.1650485436893204, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 4.130705394190872, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 16, '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': '5571886', 'n_tokens_mistral': 864, 'n_tokens_neox': 795, 'n_words': 221}