@moneybutton/config


Money Button configuration.
Table of Contents
Background
Money Button is a UI/UX and API layer for the blockchain which takes 0% transaction fees and makes Bitcoin SV easy for everyone, everywhere.
Install
yarn add -E @moneybutton/config
or
npm install --exact @moneybutton/config
Usage
const MoneyButtonConfigBuilder = require('@moneybutton/config')
const config = new MoneyButtonConfigBuilder()
.addValue('SOME_REQUIRED_VALUE', process.env.SOME_REQUIRED_VALUE)
.addValueWithDefault('SOME_OPTIONAL_VALUE', process.env.SOME_OPTIONAL_VALUE, '42')
.build()
console.log(config.get('SOME_OPTIONAL_VALUE')) // '42'
API
For in-detail API documentation, please see our automatically generated docs.
Maintainers
@ealmansi
@hojarasca
@kevinejohn
@ryanxcharles
Contribute
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.