Utilities for map projections.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import { readFile } from 'fs/promises';
-
- export const read = async <T>(path: string) => {
- const jsonBuffer = await readFile(path);
- const jsonString = jsonBuffer.toString('utf-8');
- return JSON.parse(jsonString) as T;
- };
|