Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
balena-settings-client
Advanced tools
Balena client application shared settings
Balena client application shared settings.
The intention of this module is to provice low level access to user configurable balena simple settings.
THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY.
Unless you know what you're doing, use the balena SDK instead.
Install balena-settings-client
by running:
$ npm install --save balena-settings-client
This module attempts to retrieve configuration from the following places:
UNIX:
$HOME/.balenarc.yml
.$PWD/balenarc.yml
.BALENARC_<SETTING_NAME>
.Windows:
%UserProfile%\_balenarc.yml
.%cd%\balenarc.yml
.BALENARC_<SETTING_NAME>
.The values from all locations are merged together, with sources listed below taking precedence.
For example:
$ cat $HOME/.balenarc.yml
balenaUrl: 'balena-staging.com'
projectsDirectory: '/opt/balena'
$ cat $PWD/.balenarc.yml
projectsDirectory: '/Users/balena/Projects'
dataDirectory: '/opt/balena-data'
$ echo $BALENARC_DATA_DIRECTORY
/opt/cache/balena
That specific environment will have the following configuration:
balenaUrl: 'balena-staging.com'
projectsDirectory: '/Users/balena/Projects'
dataDirectory: '/opt/cache/balena'
*
Object
*
Kind: static method of settings
Summary: Get a setting
Returns: *
- setting value
Access: public
Param | Type | Description |
---|---|---|
name | String | setting name |
Example
settings.get('dataDirectory')
Object
Kind: static method of settings
Summary: Get all settings
Returns: Object
- all settings
Access: public
Example
settings.getAll()
This module is intended to only provide read only access to the settings. Balena settings client reads settings from various locations, like a local balenarc
file and a per user config
file, therefore the module doesn't know where to write changes back.
If you want to persist data related to balena, consider using balena settings storage instead.
If you're having any problem, please raise an issue on GitHub and the balena team will be happy to help.
Run the test suite by doing:
$ npm test
Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:
$ npm run lint
The project is licensed under the Apache 2.0 license.
FAQs
Balena client application shared settings
The npm package balena-settings-client receives a total of 9,175 weekly downloads. As such, balena-settings-client popularity was classified as popular.
We found that balena-settings-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.