UNPKG

483 BJavaScriptView Raw
1let read = require("get-stdin");
2async function main(){
3 let j = JSON.parse(await read());
4 let settings = j.attributes.providerSettings;
5
6 Object.assign(settings, {
7 "enableMio": "{{ DYNAMIC_PRESET_DATA[\"enableMio\"] | default(false) }}",
8 "inputSpec": "{{ DYNAMIC_PRESET_DATA[\"inputSpec\"] | default(null) }}",
9 "outputSpec": "{{ DYNAMIC_PRESET_DATA[\"outputSpec\"] | default(null) }}"
10 })
11
12 console.log(JSON.stringify(j, null, 4));
13}
14
15main()