{"_id":"@bsb-mbp/fecs","_rev":"1-6d9c92f0aec3cfdb1157560ea7cdcda6","name":"@bsb-mbp/fecs","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bsb-mbp/fecs","version":"0.0.1","description":"Front End Code Style Suite","main":"index.js","scripts":{"lint":"node ./bin/fecs --type=js --rule","coverage":"istanbul cover ./node_modules/jasmine-node/bin/jasmine-node -x \"{cli,lib/css/rules}/*.js\" --captureExceptions test/","test":"npm run lint && npm run coverage","coveralls":"cat ./coverage/lcov.info | coveralls","postinstall":"node scripts/install.js --allow-root"},"bin":{"fecs":"./bin/fecs"},"repository":{"type":"git","url":"git+https://github.com/bsb-mbp/fecs.git"},"keywords":["fecs","jscs","jshint","jslint","eslint","csslint","csshint","htmllint","htmlhint","jsbeautify","cssbeautify","htmlbeautify"],"author":{"name":"HermannLizard","email":"coorazer@gmail.com"},"license":"MIT","preferGlobal":true,"engines":{"node":">=5"},"bugs":{"url":"https://github.com/bsb-mbp/fecs/issues"},"homepage":"https://github.com/bsb-mbp/fecs","dependencies":{"babel-eslint":"^10.0.1","chalk":"^2.1.0","csscomb":"^4.2.0","csshint":"stable","doctrine2":"latest","esformatter":"^0.10.0","esformatter-braces":"^1.2.1","esformatter-dot-notation":"^1.3.1","esformatter-fecs":"latest","esformatter-limit-linebreaks":"0.0.3","esformatter-parseint":"^1.0.3","esformatter-quotes":"^1.1.0","esformatter-remove-trailing-commas":"^1.0.1","esformatter-semicolons":"^1.1.2","esformatter-spaced-lined-comment":"^2.0.1","eslint":"^5.9.0","eslint-plugin-babel":"^5.2.1","eslint-plugin-html":"^5.0.0","eslint-plugin-import":"^2.14.0","eslint-plugin-react":"^7.4.0","htmlcs":"stable","lesslint":"stable","loophole":"^1.1.0","manis":"^0.3.4","map-stream":"^0.1.0","minimatch":"^3.0.2","minimist":"^1.2.0","msee":"^0.3.3","reserved-words":"^0.1.2","vinyl":"^2.2.0","vinyl-fs":"^3.0.3"},"devDependencies":{"coveralls":"^3.0.2","istanbul":"^0.4.5","jasmine-node":"^2.0.0","mock-fs":"^4.7.0","mock-require":"^3.0.2"},"gitHead":"7f29e0117b4a04ad092ba433cfde7c467da03351","_id":"@bsb-mbp/fecs@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"hermannlizard","email":"coorazer@gmail.com"},"dist":{"integrity":"sha512-qkCpvReqkP4jk/XNRoo6RoOarrJjidneJIFsFjEOj6mDUkK0kfDojCb8crB+4FgeRD280190dZiZhexFYKcUyw==","shasum":"0201832e80e203cea7b728563ef9f79e6b047e5d","tarball":"https://registry.npmjs.org/@bsb-mbp/fecs/-/fecs-0.0.1.tgz","fileCount":96,"unpackedSize":349290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJca2akCRA9TVsSAnZWagAAQ6AP/3z5xgjjFzPMBGiGF4Eh\ns5Y4tLPqARA43Gp6U9b2lGMpl4wKGp+IaUCpmcgIAFP/W8IIPyeRs8E9ErQM\n6AHMtXMz9FKdldvyQC/EIZet+/M3BT4vEam3r4wSaBxJLE4o12XqZjRPMQHU\nzV1zNleAUwHodYz8PcsJ/UBtno/XoZGnDPIoocRb/wkP13MiAjTVyYahm98a\nZnpPlTQjTvdGCl6jNhYg9BFKxpPKuIHuMhNtMk26Zo3jdPh59nf/JfiBKqaZ\nPjnKydEKX9/Z1sGjQz2zMaDVfgVs+NjglB0gvHsOQ/iULtUDIoWn8ne8ARAi\n4a5RaZvaNZeWL0ViArUinC/ZtpBtofcmygwItmJkDvUPsLTk9q9/1Kz7UXYJ\nQpm9ZAfggpiFDxjH4XZc0IruZ0xe2WeGWLPF8RnHOY00Lb3GXrv+Gcr28rF6\n3dJB7bisq1Uoyzm88HzJlncWcJ3RTsED0hyrMLXturBLQ1akjBNeOq9EAB3z\ntY89mLYXWCiFsOK0nQSrH8XDQ0err4zSxIYvASAHgytid7RjdiLd9KPktD8O\nff7OPRkkIKyfNzXbj1RU3kgsx429DeaUvqjiZguYjynk9/uIATFK6R34jVTL\n9ZYrzCcy2IGsmTVAU0WmrkK8DN1XrWmziP+0rmvKuNG2YU+AX9mo8GQlGPNz\nV2r5\r\n=yiWB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFLmFGJ4FYbeBgwSuhzpTs3YV4Z88n6fisSJUM3l6uRAiBiegSivOsgfryQ1l3yOJL0NH8u8Z4WHOR2ZaQS5weydw=="}]},"maintainers":[{"name":"hermannlizard","email":"coorazer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fecs_0.0.1_1550542499406_0.568418437025658"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-19T02:14:59.207Z","0.0.1":"2019-02-19T02:14:59.576Z","modified":"2022-04-04T20:50:27.428Z"},"maintainers":[{"name":"hermannlizard","email":"coorazer@gmail.com"}],"description":"Front End Code Style Suite","homepage":"https://github.com/bsb-mbp/fecs","keywords":["fecs","jscs","jshint","jslint","eslint","csslint","csshint","htmllint","htmlhint","jsbeautify","cssbeautify","htmlbeautify"],"repository":{"type":"git","url":"git+https://github.com/bsb-mbp/fecs.git"},"author":{"name":"HermannLizard","email":"coorazer@gmail.com"},"bugs":{"url":"https://github.com/bsb-mbp/fecs/issues"},"license":"MIT","readme":"FECS\n==========\n\nFECS 是基于 Node.js 的前端代码风格工具。\n\n[![Build Status](https://img.shields.io/travis/ecomfe/fecs.svg?style=flat)](http://travis-ci.org/ecomfe/fecs)\n[![Build Status](https://img.shields.io/appveyor/ci/chriswong/fecs.svg?style=flat)](https://ci.appveyor.com/project/chriswong/fecs)\n[![NPM version](https://img.shields.io/npm/v/fecs.svg?style=flat)](https://www.npmjs.com/package/fecs)\n[![Coverage Status](https://img.shields.io/coveralls/ecomfe/fecs.svg?style=flat)](https://coveralls.io/r/ecomfe/fecs)\n[![Dependencies](https://img.shields.io/david/ecomfe/fecs.svg?style=flat)](https://david-dm.org/ecomfe/fecs)\n[![DevDependencies](https://img.shields.io/david/dev/ecomfe/fecs.svg?style=flat)](https://david-dm.org/ecomfe/fecs)\n\n\n### 安装\n\n```\n    $ [sudo] npm install fecs -g\n```\n\n### 使用\n\n```\n    fecs\n    fecs -v\n    fecs check --help\n    fecs format --help\n```\n\n更多参数见 wiki: [CLI](https://github.com/ecomfe/fecs/wiki/CLI)\n\n### API\n\n#### fecs.leadName\n\n设置或获取控制台输出信息前的名称，默认值为 `fecs`。\n\n```javascript\nvar fecs = require('fecs');\nfecs.leadName = 'edp';\n...\n```\n\n#### fecs.getOptions(Array argv)\n\n获取经 `minimist` 解释后的命令行参数对象，可用于 `fecs.check` 和 `fecs.format` 方法。\n\n```javascript\nvar options = fecs.getOptions(process.argv.slice(2));\n\nconsole.log(options.command); // 'check'\n...\n```\n\n#### fecs.check(Object options[, Function done])\n\n检查文件或输入流的代码规范。\n\n```javascript\n// 设置检查的文件路径\noptions._ = ['/path/to/check'];\n\n// 或者设置为 stream\n// options.stream = yourReadableStream;\n\n// 设置文件类型\n// options.type = 'js,css';\n\n\n/**\n * callback after check finish\n *\n * @param {boolean} success true as all files ok, or false.\n * @param {Object[]} errors data for check result.\n */\nfunction done(success, errors) {\n    // blablabla\n}\n\nfecs.check(options, done);\n```\n\n#### fecs.format(Object options)\n\n格式化、修复文件或输入流的代码。\n\n```javascript\nfecs.check(options);\n```\n\n\n### 工具支持\n\n - [x] [VIM](https://github.com/hushicai/fecs.vim)\n - [x] [WebStorm](https://github.com/leeight/Baidu-FE-Code-Style#webstorm)\n - [x] [Eclipse](https://github.com/ecomfe/fecs-eclipse)\n - [x] Sublime Text 2/3 [Baidu FE Code Style](https://github.com/leeight/Baidu-FE-Code-Style) [Sublime Helper](https://github.com/baidu-lbs-opn-fe/Sublime-fecsHelper) [SublimeLinter-contrib-fecs](https://github.com/robbenmu/SublimeLinter-contrib-fecs)\n - [x] Visual Studio Code [fecs-visual-studio-code](https://github.com/21paradox/fecs-visual-studio-code) [vscode-fecs(中文)](https://github.com/MarxJiao/VScode-fecs)\n - [x] [Atom](https://github.com/8427003/atom-fecs)\n - [x] [Emacs](https://github.com/Niandalu/flycheck-fecs)\n\n - [x] [Grunt](https://github.com/ecomfe/fecs-grunt)\n - [x] [Gulp](https://github.com/ecomfe/fecs-gulp)\n\n - [x] [Git Hook](https://github.com/cxtom/fecs-git-hooks)\n\n\n### 常见问题\n\n- <https://github.com/ecomfe/fecs/wiki/FAQ>\n- <https://github.com/ecomfe/fecs/wiki/HowToFix>\n\n更多信息请访问 <https://github.com/ecomfe/fecs/wiki>\n\n","readmeFilename":"README.md"}