Helpers for reading/writing json files.
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(`<html>...</html>`);
});
});
// Stop app when you're done.
app.close();