<commit_before># Ledger

Ledger is a [Node.js](http://nodejs.org/) Javascript implementation of the [Advanced Media Workflow Association's](http://www.amwa.tv/) [Networked Media Open Standard](http://github.com/AMWA-TV/nmos) discovery and registration APIs.

Currently, this is a fairly complete implementation of the node, registration and query APIs. (Work on the support of the peer-to-peer API is still in progress.)

## Installation

Install [Node.js](http://nodejs.org/) for your platform. This software has been developed against the long term stable (LTS) release.

Ledger can be run as a standalone registration application and query API or `require`d to use from your own application, such as to create an instance of a Node API to represent local devices.

### Standalone registration

To install the standalone registration application as a global application:

    npm install -g nmos-ledger

Once installed, to run a combined registration and query API over the same memory-resident store:

    nmos-ledger

The following is a example of configuring properties such as port numbers, DNS-SD service names and service priority:

    nmos-ledger queryPort=4000 registrationPort=4001 queryName=qi queryPri=10

### Install as a local dependency
<commit_msg>Changed Standard to Specifications.<commit_after># Ledger

Ledger is a [Node.js](http://nodejs.org/) Javascript implementation of the [Advanced Media Workflow Association's](http://www.amwa.tv/) [Networked Media Open Specifications](http://github.com/AMWA-TV/nmos) discovery and registration APIs.

Currently, this is a fairly complete implementation of the node, registration and query APIs. (Work on the support of the peer-to-peer API is still in progress.)

## Installation

Install [Node.js](http://nodejs.org/) for your platform. This software has been developed against the long term stable (LTS) release.

Ledger can be run as a standalone registration application and query API or `require`d to use from your own application, such as to create an instance of a Node API to represent local devices.

### Standalone registration

To install the standalone registration application as a global application:

    npm install -g nmos-ledger

Once installed, to run a combined registration and query API over the same memory-resident store:

    nmos-ledger

The following is a example of configuring properties such as port numbers, DNS-SD service names and service priority:

    nmos-ledger queryPort=4000 registrationPort=4001 queryName=qi queryPri=10

### Install as a local dependency

{'fraction_non_alphanumeric': 0.067578125, 'fraction_numerical': 0.0078125, 'mean_word_length': 4.678492239467849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '153255', 'n_tokens_mistral': 678, 'n_tokens_neox': 633, 'n_words': 323}