#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
| module.exports = { | |
| // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style | |
| 'extends': 'standard', | |
| 'env': { | |
| 'browser': true, | |
| 'commonjs': true, | |
| 'es6': true, | |
| 'node': true | |
| }, | |
| 'globals': { |
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=759670 | |
| // for the documentation about the jsconfig.json format | |
| "compilerOptions": { | |
| "target": "es6", | |
| "module": "commonjs", | |
| "allowSyntheticDefaultImports": true | |
| }, | |
| "exclude": [ | |
| "node_modules", |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <phpunit backupGlobals="false" | |
| backupStaticAttributes="false" | |
| bootstrap="tests/bootstrap.php" | |
| colors="true" | |
| convertErrorsToExceptions="true" | |
| convertNoticesToExceptions="true" | |
| convertWarningsToExceptions="true" | |
| processIsolation="false" | |
| stopOnFailure="false" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ruleset name="PHP_CodeSniffer"> | |
| <description>The coding standard for PHP_CodeSniffer itself.</description> | |
| <exclude-pattern>*/vendor/*</exclude-pattern> | |
| <rule ref="PSR2"/> | |
| </ruleset> |
| function iteratorDir(dir, recursive) { | |
| // 去除尾部的'/'字符 | |
| if (dir[dir.length - 1] == '/') { | |
| dir = dir.substring(0, dir.length - 1); | |
| } | |
| var dirList = []; | |
| var items = fs.readdirSync(dir); | |
| items.forEach((item, index) => { | |
| var path = dir + '/' + item; |