【文件属性】:
文件名称:editorconfig-core-js:用JavaScript编写的EditorConfig核心库和命令行实用程序
文件大小:55KB
文件格式:ZIP
更新时间:2021-05-02 16:24:51
JavaScript
EditorConfig JavaScript核心
EditorConfig JavaScript核心将提供与和相同的功能。
安装
您需要使用该程序包的。
要在本地安装软件包:
$ npm install editorconfig
要在系统范围内安装软件包:
$ npm install -g editorconfig
用法
在Node.js中:
parse(filePath [,options])
options是具有以下默认值的对象:
{
config : '.editorconfig' ,
version : pkg . version ,
root : '/'
} ;
从当前目录开始搜索.editorconfig到根目录。
例子:
const editorconfig = require ( 'editorconfig' ) ;
const path
【文件预览】:
editorconfig-core-js-master
----.gitignore(118B)
----package.json(2KB)
----tslint.json(3KB)
----package-lock.json(136KB)
----src()
--------cli.ts(1KB)
--------index.test.ts(2KB)
--------index.ts(7KB)
--------lib()
----bin()
--------editorconfig(78B)
----.travis.yml(160B)
----LICENSE(1KB)
----CHANGELOG.md(315B)
----tsconfig.json(604B)
----.gitmodules(118B)
----README.md(4KB)
----tests()
----.npmignore(26B)
----.gitattributes(66B)
----CMakeLists.txt(396B)
----.editorconfig(265B)