@conclurer/defaults
v0.1.0-beta.18
Published
Default settings and configs for edelog.
Downloads
25
Keywords
Readme
defaults
Getting default settings and configs for Edelog apps.
Installation
Add @conclurer/defaults
to your project.
With the defined method parsedDefaultsFor
in methods
you can get different
Configs/Settings in a parsed format. Means if the value of the Setting/Config is
1
you will receive 1
. With the defined method stringifiedDefaultsFor
it is
the same but instead of 1
you will receive "1"
.
- parsedDefaultsFor(String as DefaultType, Array<String as Visibility>)
- stringifiedDefaultsFor(String as DefaultType, Array<String as Visibility>)
| DefaultType | Visibility | | -------------- | ------------------------------- | | "SystemConfig" | "public", "private", "internal" | | "OrgSettings" | "public", "private", "internal" |
Both methods return an object with the Settings/Configs selected through the
parameters. Visibilities can be combined. For example
parsedDefaultsFor("SystemConfig", ["private", "public"])
would return an
object with all private and public Configs from SystemConfig (First all private
then all public).
Documentation of all Configs and Settings
Contributing
Compiles and minifies for production
yarn run build
Run your unit tests
yarn run test:unit