bfx-hf-ui-config
This library gives a set of configs, which can be used in all bfx-hf-*
services. Any config in bfx-hf-ui-config
contain predefined default values
Installation
npm i --save bfx-hf-ui-config
Docs
UserSettings (see docs/user_settings.md
)
Quickstart & Example
To get started, import an bfx-hf-ui-config
to your project, then get any config you need, for istance it will be UserSettings:
const _default = UserSettings // get UserSettings default valuesconst send = const sendError = const isAuthorized = moduleexports = async { const db = server const UserSettings = db const authToken = msg if ! return const userSettings = await UserSettings // in case if userSettings in db are empty, then we should send _default object from the UserSettings}
Contributing
- Fork it (https://github.com/bitfinexcom/bfx-hf-ui-config)
- Create your feature branch (`git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request