Utilities for map projections.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567
  1. import { readFile } from 'fs/promises';
  2. export const read = async <T>(path: string) => {
  3. const jsonBuffer = await readFile(path);
  4. const jsonString = jsonBuffer.toString('utf-8');
  5. return JSON.parse(jsonString) as T;
  6. };