@first-lego-league/ms-configuration
A configuration package supporting the MS (Module Standard)
Last updated 2 months ago by idanstark42 .
GPL-3.0 · Repository · Original npm · Tarball · package.json
$ cnpm install @first-lego-league/ms-configuration 
SYNC missed versions from official npm registry.

npm codecov Build status GitHub

David Dependency Status David Dev Dependency Status David Peer Dependencies Status

FIRST LEGO League Configuration

A Configuration package, working according to the FIRST LEGO League TMS Module Standard configuration section.

Logic

This package is connected to the Launcher configuration MHub node, using the ms-messenger package. It holds an in-memory state of the configuration data saved in the launcher, and allows the user to both get and set it, using MHub messages.

Usage

You can set and get fields in the following ways:

const config = require('@first-lego-league/ms-configuration')
config.set('some-field-name', someFieldValue)
config.setMultiple([{ name: 'field1-name', value: 'field1-value' }, { name: 'field2-name', value: 'field2-value' }, ...])

config.get('some-field-name') // returns field value
config.all() // returns an object of key-value pairs containing all of the configuration field names.

Contribution

To contribute to this repository, simply create a PR and set one of the Code Owners to be a reviewer. Please notice the linting and UT, because they block merge. Keep the package lightweight and easy to use. Thank you for contributing!

Current Tags

  • 2.4.0                                ...           latest (2 months ago)

24 Versions

  • 2.4.0                                ...           2 months ago
  • 2.3.1                                ...           2 months ago
  • 2.3.0                                ...           2 months ago
  • 2.2.1                                ...           9 months ago
  • 2.2.0                                ...           9 months ago
  • 2.1.3                                ...           a year ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.1-alpha                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |