Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 837 Bytes

README.zh.md

File metadata and controls

39 lines (26 loc) · 837 Bytes

robotsjs

Robots.js 可以用你制定的规则构建 robots.txt。(目前功能有限) 由 FastGitORG/SpiderFuckerKinetix-Lee/spiderfucker-python 改编而来。

用法

默认(推荐)

-i-o 参数具有默认值,所以你可以直接这样操作:

npm run create

这样会加载 config/rules.json,输出 config/robots.txt

指定参数

Options:

  • -i, --in [file] Specify input file. (default: "config/rules.json")
  • -o, --out [file] Specify output file. (default: "config/robots.txt")
  • -h, --help display help for command
npm run create -i [Input] -o [Output]

测试

npm run test

查看帮助

npm run rjs-help