项目
在 GitHub 查看 weallbehave
WeAllJS/weallbehave
关于
CODE_OF_CONDUCT.md generator
开发工具实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文weallbehave

weallbehave is a command-line tool for automatically generating and updating the CODE_OF_CONDUCT.md for your projects.
You can configure the maintainers that will enforce the CoC by adding author and contributors fields to package.json. Currently email and twitter are supported. You can exclude maintainers from enforcement duties by adding "coc-enforcer": false to their author/contributors entry.
Install
Locally to your npm project (recommended):
$ npm install --save-dev weallbehave
Globally:
$ npm install -g weallbehave
Example
npm repo
// package.json
{
"scripts": {
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'"
},
"author": {
"name": "Alice",
"email": "[email protected]",
"twitter": "@socialistengineering"
},
"contributors": [
{
"name": "Bob",
"email": "[email protected]",
"coc-enforcer": false
},
{
"name": "Catherine",
"email": "[email protected]"
}
]
}
// Now you can do `npm run update-coc` any time you
// bump your `weallbehave` version to bring your docs
// up to date! And you don't need a global install!
Global CLI install
# Read your repo info from package.json or git
# and pipe the output to `coc.md`
$ weallbehave > coc.md
# Write a CODE_OF_CONDUCT.md document to the ./foo dir.
$ weallbehave -o ./foo
探索相关项目
加载中…