0.7.0 • Published 8 months ago

rngo v0.7.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

rngo for Node.js

The official Node.js library for rngo and a bundled CLI.

Installation

To add the library to your Node.js project, run:

npm install rngo

or

yarn add rngo

Usage

Start by initializing an instance of the Rngo class:

import { Rngo } from 'rngo';

const rngo = Rngo.init();

This expects the rngo API token to be available in the RNGO_API_TOKEN environment variable, and will use default configuration values.

You can also pass in a configuration object:

const rngo = Rngo.init({
  apiToken: env.API_TOKEN,
  directory: 'rngo-data',
})

You can use the Rngo instance to run simulations:

const simulation = await rngo.runSimulation()

and import simulation data:

await rngo.importSimulation(simulation.id)

CLI

The CLI can be used locally in a project by running:

npx rngo

or

yarn rngo

To install the CLI globaly, run:

npm install -g rngo

or

yarn global add rngo

For usage details, run:

rngo --help

Contributing

Release

To release, run:

npm version <major|minor|patch>
git push
git push --tags

Create the Github release for that tag, and run:

npm publish
0.7.0

8 months ago

0.6.2

9 months ago

0.5.0

10 months ago

0.6.1

9 months ago

0.6.0

9 months ago

0.3.0

12 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.4.1

11 months ago

0.4.0

12 months ago

0.4.3

11 months ago

0.4.2

11 months ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.3

1 year ago

0.1.0

2 years ago