1.0.2 • Published 3 years ago

node-readme-template v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

node-readme-template

A tool to generate README files automatically.

项目结构

├── .gitignore              # git 忽略上传文件
├── bin                     # cli bin 目录
│   ├── index               # node 脚本入口文件
├── config                  # 相关配置文件目录
│   ├── index.js            # 配置主文件
├── index.js                # 项目入口文件
├── LICENSE                 # 授权说明
├── package.json            # 包描述文件
├── README.md               # 项目说明文件
├── utils                   # 工具包目录
│   ├── commandLine.js      # 命令行相关
│   ├── readme.js           # readme 配置相关

项目安装运行

  • 开发环境运行步骤
    • 安装依赖包
    npm install
    • 建立命令软连接
    npm link
    • 使用命令
    readme

依赖包说明

包名版本license功能概要
chalk^4.1.1MIT命令行美化插件
commander^8.0.0MIT命令行插件,用于命令及其参数配置
fs0.0.1-securityISCnode文件系统模块
inquirer^8.1.1MIT命令行插件,用于用户交互
ora^5.4.1MIT加载转轮插件
path^0.12.7MITnode路径处理插件

常见问题说明

  • Q:没有package.json文件,怎么生成README.md文件?
    • A:可使用npm init初始化包,生成package.json文件,为了项目更加完整、规范,尽量填写所有项。之后再运行readme命令,即可生成README.md文件。

版本变更日志

V1.0.2(2021/06/27)

  • 新增命令参数
    • readme,普通运行,需要用户选择配置项
    • readme -yreadme --yes,全部选择默认配置项
    • readme -vreadme --version,查看当前工具的版本
    • readme -hreadme --help,查看命令帮助

V1.0.1(2021/06/26)

  • 修复部分bug

V1.0.0(2021/06/26)

  • 基本功能完成
    • 根据package.json文件初始化配置选项
    • 根据用户自定义选择配置项生成模板文档

License

MIT License

Copyright (c) 2021 FemsQuanGit

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.

关键词

node readme cli

源码贡献者