@ms-cloudpack/json-utilities
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

@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();

Readme

Keywords

none

Package Sidebar

Install

npm i @ms-cloudpack/json-utilities

Weekly Downloads

680

Version

0.1.8

License

MIT

Unpacked Size

20.5 kB

Total Files

15

Last publish

Collaborators

  • ecraig12345_msft
  • uifabricteam
  • dzearing