0.13.0 • Published 5 months ago

@cloudthrottle/dcc-ex--commands v0.13.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

DCC++ EX Command Library

A Javascript library to help create DCC++ EX Command strings.

A developer friendly approach to creating command strings that can be sent to a DCC++EX Command Station

Usage/Examples

Quick Start

<script type="module">
    import * as DCCCommands from 'https://cdn.skypack.dev/@cloudthrottle/dcc-ex--commands';

    console.log(DCCCommands.powerCommand({power: 1, track: "MAIN"}));
    // <1 MAIN>
</script>

NPM Package

Install with npm

  npm install @cloudthrottle/dcc-ex--commands
import {throttleCommand} from "@cloudthrottle/dcc-ex--commands";

const commandString = throttleCommand({
    cab: 22,
    speed: 126,
    direction: 1
})

console.log(commandString)
// <t 1 22 126 1>

Demo

Try out some commands

Documentation

Developing

Clone the project

  git clone https://github.com/cloudthrottle/dcc-ex--commands.git

Go to the project directory

  cd dcc-ex--commands

Install environment. This project requires Node v16.8 or above. If node is already installed this step can be skipped. asdf is recommended due to it's simplicity

  asdf install

Install dependencies

  npm install

Run the test suite

  npm test

Related

Here are some related projects

0.13.0

5 months ago

0.11.0

7 months ago

0.12.0

6 months ago

0.10.1

2 years ago

0.10.0

2 years ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.1.11

2 years ago

0.1.9

2 years ago

0.1.8-0

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.5-0

2 years ago

0.0.4-0

2 years ago

0.0.3-0

2 years ago

0.0.2-0

2 years ago

0.0.1

2 years ago