@conclurer/defaults
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-beta.18 • Public • Published

defaults

Getting default settings and configs for Edelog apps.

Installation

Add @conclurer/defaultsto 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

Documentation-Defaults

Contributing

Compiles and minifies for production

yarn run build

Run your unit tests

yarn run test:unit

Readme

Keywords

none

Package Sidebar

Install

npm i @conclurer/defaults

Weekly Downloads

2

Version

0.1.0-beta.18

License

Apache-2.0

Unpacked Size

28.4 kB

Total Files

12

Last publish

Collaborators

  • chrisconclurer
  • maxzeger
  • julian_bm
  • lemonlime
  • can557
  • mc17uulm
  • maehldom
  • marvinscharle