Read and Write to the constants file
- Source:
- See:
-
- module:jsons-constants
Members
(static) updateConstants
- Source:
- See:
-
- updateConstants()
(static) writeJSON
- Source:
- See:
-
- writeJSON()
Methods
(inner) getConstantsPath() → {String}
- Source:
Returns:
- Absolute directory of constants.json
- Type
- String
(inner) getJSONFile() → {File}
- Source:
Returns:
- Constants file
- Type
- File
(inner) readJSON() → {JSON}
- Source:
Returns:
- Contents of config file
- Type
- JSON
(inner) updateConstants()
- Source:
Reads the file and updates export accordingly
(inner) writeJSON(obj)
- Source:
Writes new constants JSON to file
Parameters:
Name | Type | Description |
---|---|---|
obj |
JSON | The JSON object of new constnats file |