
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
readme-builder
Advanced tools
A simple tool used to generate read me doc for project [readme-lang:zh]用于生成项目的readme文档的简单工具
A simple tool used to generate read me doc for project
npm i readme-builder --save or npm i readme-builder --save-dev
Install on global, using npm i readme-builder -g
our goal is blah blah...
run buildreadme in your project root
commands
$ cd ../test/fixture/node/p0
$ ./node_modules/.bin/buildreadme | head -c 200
$ echo "\n\n......"
output
# test-p0
test p0 project
[中文文档](./README_zh.md) [document](./README.md)
## install
`npm i test-p0 --save` or `npm i test-p0 --save-dev`
Install on global, using `npm i test-p0 -g`
##
......
write result to readme.md, just add -w option
commands
$ cd ../test/fixture/node/p0
$ ./node_modules/.bin/buildreadme -w
$ ls README*
output
README.md
README_zh.md
$ ./node_modules/readme-builder/bin/buildreadme -h
Usage: buildreadme
-p [project directory, default is current directory]
-t [project type, default is node]
-w [write to readme.md]
Options:
-h, --help Show help [boolean]
quickest way to use readme builder api, just specify project directory
let readmeBuilder = require('readme-builder')
let path = require('path');
readmeBuilder({
projectDir: path.resolve(__dirname, './test/fixture/node/p0')
}).then((ret) => {
console.log(ret.en.slice(0, 200) + '\n\n......\n\n\n'); // en version
console.log(ret.zh.slice(0, 200) + '\n\n......\n\n'); // zh version
});
output
# test-p0
[中文文档](./README_zh.md) [document](./README.md)
test p0 project
- [install](#install)
- [goal](#goal)
- [usage](#usage)
* [CLI quick run](#cli-quick-run)
* [CLI options](#cli-options)
......
# test-p0
[中文文档](./README_zh.md) [document](./README.md)
test p0 project
- [安装](#%E5%AE%89%E8%A3%85)
- [goal](#goal)
- [使用方法](#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)
* [命令行快速运行](#%E5%91%BD%E4%BB%
......
let readmeBuilder = require('readme-builder/src/index.js')
// example
// readmeBuilder({
// projectDir: path.resolve(__dirname, './project')
// })
(Falsy | Object) options (Object)
(String) - The directory of project used to generate readme document(String | Falsy) - Only support node right now(Promise) .
│──LICENSE
│──README.md
│──README_zh.md
│──TODO.md
│──bin
│ └──build-readme.js
│──index.js
│──package.json
│──src
│ │──index.js
│ │──node
│ │ │──collector
│ │ │ │──binHelpers.js collect bin help info
│ │ │ │──commentsContent.js
│ │ │ │──devHelpers.js
│ │ │ │──index.js
│ │ │ └──license.js
│ │ │──index.js
│ │ └──processor
│ │ │──apiInfos.js
│ │ │──binQuickRunInfos.js
│ │ │──commentToDocVariables.js
│ │ │──index.js
│ │ └──jsQuickRunInfos.js
│ └──util
│ └──index.js
└──test
│──fixture
│ └──node
└──function
│──index.js
└──testUtil.js
npm test
MIT License
Copyright (c) 2017 chenjunyu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A simple tool used to generate read me doc for project [readme-lang:zh]用于生成项目的readme文档的简单工具
We found that readme-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.