joycon:轻松找到并加载配置文件

时间:2021-05-05 07:14:02
【文件属性】:
文件名称:joycon:轻松找到并加载配置文件
文件大小:91KB
文件格式:ZIP
更新时间:2021-05-05 07:14:02
JavaScript Joycon 与? JoyCon是零依赖的,但功能齐全。 安装 yarn add joycon 用法 const JoyCon = require ( 'joycon' ) const joycon = new JoyCon ( ) joycon . load ( [ 'package-lock.json' , 'yarn.lock' ] ) . then ( result => { // result is {} when files do not exist // otherwise { path, data } } ) 默认情况下,仅解析.js和.json文件,否则将返回原始数据,因此您可以添加自定义加载程序来解析它们: const joycon = new JoyCon ( ) joycon . addLoader ( { test : / \. toml $ /
【文件预览】:
joycon-master
----.gitignore(19B)
----.babelrc(155B)
----package.json(879B)
----src()
--------index.js(6KB)
----LICENSE(1KB)
----types()
--------test.ts(330B)
--------index.d.ts(1KB)
----.github()
--------workflows()
----README.md(3KB)
----circle.yml(561B)
----tests()
--------index.test.js(2KB)
--------sync.test.js(2KB)
--------fixtures()
----lib()
--------index.js(7KB)
----.gitattributes(12B)
----.editorconfig(187B)
----.prettierrc(26B)
----yarn.lock(208KB)

网友评论