<commit_before>﻿# Hosted Web Application Tool

This tool is used to create hosted web applications based on a [W3C Web App manifest](http://www.w3.org/TR/appmanifest/).

## Installation

````
npm install
````

## Usage

````
node appmyweb <website URL> [-d <app directory>] [-p <platforms>] [-l <log level>] [-b] [-m <manifest file>]
````

### Parameters

- **Website URL** (required): URL of the hosted website
- **-d|--directory** (optional): Path to the generated project files (default value: the current directory)
- **-l|--loglevel** (optional): Tracing log level options Available log levels: _debug,trace,info,warn,error_ (default value: _warn_)
- **-p|--platforms** (optional): Platforms to generate. Supported platforms: _windows,android,ios,chrome_ (default value: all platforms)
- **-b|--build** (optional): Forces the building process
- **-m|--manifest** (optional): Location of the W3C Web App manifest file (URL or local path). If not specified, the tool looks for a manifest in the site URL. Otherwise, a new manifest will be created pointing to the site URL.

### Example

````
node appmyweb http://meteorite.azurewebsites.net -D:\Projects -l info -p windows,android -b
````

## Unit Tests

In the terminal, install the Grunt task runner:<commit_msg>[Node Tools] Added table formatting for parameters description<commit_after>﻿# Hosted Web Application Tool

This tool is used to create hosted web applications based on a [W3C Web App manifest](http://www.w3.org/TR/appmanifest/).

## Installation

````
npm install
````

## Usage

````
node appmyweb <website URL> [-d <app directory>] [-p <platforms>] [-l <log level>] [-b] [-m <manifest file>]
````

### Parameters

| Parameter                   | Description |
| ----------------------------| ------------|
| `Website URL` (required)    | URL of the hosted website |
| `-d|--directory` (optional) | Path to the generated project files (default value: the current directory) |
| `-l|--loglevel` (optional)  | Tracing log level options Available log levels: _debug,trace,info,warn,error_ (default value: _warn_) |
| `-p|--platforms` (optional) | Platforms to generate. Supported platforms: _windows,android,ios,chrome_ (default value: all platforms) |
| `-b|--build` (optional)     | Forces the building process |
| `-m|--manifest` (optional)  | Location of the W3C Web App manifest file (URL or local path). If not specified, the tool looks for a manifest in the site URL. Otherwise, a new manifest will be created pointing to the site URL. |

### Example

````
node appmyweb http://meteorite.azurewebsites.net -D:\Projects -l info -p windows,android -b
````

## Unit Tests

In the terminal, install the Grunt task runner:
{'fraction_non_alphanumeric': 0.1546468401486989, 'fraction_numerical': 0.0022304832713754648, 'mean_word_length': 3.955801104972376, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '6752568', 'n_tokens_mistral': 808, 'n_tokens_neox': 765, 'n_words': 314}