the issue with a 'core' library is stuff always gets added to it
Good point, Settings it is then.
enforce settings.json so just require('Settings').get('app', 'option.to.get', 'default') might be better
You're right, I think I mostly avoided it because I couldn't think of a nice way to ask for global settings from settings.json (passing in an empty first argument seems error-prone). But we can pass in Bangle (the object) and check for that. (unless that would lead to some issue like huge RAM usage I didn't think of?)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Good point,
Settings
it is then.You're right, I think I mostly avoided it because I couldn't think of a nice way to ask for global settings from
settings.json
(passing in an empty first argument seems error-prone). But we can pass inBangle
(the object) and check for that. (unless that would lead to some issue like huge RAM usage I didn't think of?)