Helpers for reading/writing json files.
npm install @ms-cloudpack/json-utilitiesHelpers for reading/writing json files.
``js
import { readJson, writeJson } from '@ms-cloudpack/json-utilities';
async function start() {
const result = (await readJSON(path/to/file.json)) || defaultValue;
}
const app = createExpressApp([5000, 5001], (app) => {
// Set up routes.
app.get('*', async (req, res) => {
res.send(...);
});
});
// Stop app when you're done.
app.close();
``