Utilities for map projections.
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- 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;
- };
|