在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sindresorhus/load-json-file开源软件地址:https://github.com/sindresorhus/load-json-file开源编程语言:JavaScript 77.9%开源软件介绍:load-json-file
It also strips UTF-8 byte order mark (BOM). Install
Usageimport {loadJsonFile} from 'load-json-file';
console.log(await loadJsonFile('foo.json'));
//=> {foo: true} APIloadJsonFile(filePath, options?)Returns a loadJsonFileSync(filepath, options?)Returns the parsed JSON. optionsType: beforeParseType: Applies a function to the JSON string before parsing. reviverType: Prescribes how the value originally produced by parsing is transformed, before being returned. See the load-json-file for enterpriseAvailable as part of the Tidelift Subscription. The maintainers of load-json-file and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more. Related
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论