UNPKG

generator-cap

Version:

CAP (Connected Apps Platform) is an open-source suite of technologies for rapidly creating web and mobile applications that synchronize data with Salesforce and other systems.

21 lines (18 loc) 479 B
const { exec } = require('promisify-child-process'); const opsys = process.platform; const https = require('https'); // Windows async function changeJSONResponse(jsonResponse) { let response = JSON.parse(jsonResponse.stdout); response.keys.forEach(element => { element.alg = 'RS256'; element.kty = 'RSA'; element.use = 'sig'; }); return response; } if (opsys === 'darwin' || opsys === 'linux') { console.log('linux'); } else { console.log('windows'); }