@ms-cloudpack/json-utilities
v0.1.8
Published
Helpers for reading/writing json files.
Downloads
2,624
Keywords
Readme
@ms-cloudpack/json-utilities
Helpers for reading/writing json files.
Usage
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();