DefinitelyTyped/types/read-json-sync/read-json-sync-tests.ts
2020-04-10 19:42:45 -07:00

5 lines
126 B
TypeScript

import readJsonSync = require("read-json-sync");
readJsonSync("file.json", "utf8");
readJsonSync(1, { encoding: "gb2312" });