<commit_before># node-http-server: command-line static web server for node.js

`http-server` is a simple, no-configuration command-line static web server.  It can be used for anything from simple learning and testing to full production use serving static web content.

Installation is via `npm`.  If you don't have `npm` yet:

     curl http://npmjs.org/install.sh | sh
     
Once you have `npm`:

     npm install http-server -g
     
This will install `http-server` globally so that it may be run from the command line.  Now try:

     http-server /mypath
     
The entire /mypath tree will now be available at `http://localhost:8080/`.  

## Usage:

     http-server [path] [options]

Available options:

`-p` Port to listen for connections on (defaults to 8080)

`-a` Address to bind to (defaults to 'localhost')

`-s` or `--silent` In silent mode, log messages aren't logged to the console.

`-h` or `--help` Displays a list of commands and exits.

<commit_msg>[docs] Added example to README<commit_after># node-http-server: command-line static web server for node.js

`http-server` is a simple, no-configuration command-line static web server.  It can be used for anything from simple learning and testing to full production use serving static web content.

Installation is via `npm`.  If you don't have `npm` yet:

     curl http://npmjs.org/install.sh | sh
     
Once you have `npm`:

     npm install http-server -g
     
This will install `http-server` globally so that it may be run from the command line.

## Usage:

     http-server [path] [options]

Example:

     avian@avian:~/web$ http-server ~/handbook -p 9000
     Starting up http-server for: /home/avian/handbook on port: 9000
     http-server successfully started at 9000
     Hit CTRL-C to stop the server
      
     
The entire /mypath tree will now be available at `http://localhost:8080/`.  



## Available Options:

`-p` Port to listen for connections on (defaults to 8080)

`-a` Address to bind to (defaults to 'localhost')

`-s` or `--silent` In silent mode, log messages aren't logged to the console.

`-h` or `--help` Displays a list of commands and exits.


{'fraction_non_alphanumeric': 0.09388136384866885, 'fraction_numerical': 0.013078000934142924, 'mean_word_length': 3.159223300970874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2689304', 'n_tokens_mistral': 689, 'n_tokens_neox': 620, 'n_words': 291}