New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generatecomment

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generatecomment

add directory comment

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

generateComment

根据git记录生成文件的头部信息(前提是该项目有git仓库)

/*
 @ Description: This is a discription
 @ Author: xxx@xxxx.com
 @ CreatedTime: 2018-03-07 15:43:56
 @ LastEditor: yyy@yyyy.com
 @ LastEditTime: 2019-01-10 11:37:17
*/

第一步 安装依赖

npm i generatecomment

第二步 创建脚本文件

在项目根目录下创建comment.js文件,复制以下内容到文件中

const path = require('path');
const comment = require("generatecomment");
comment({
  // 表示当前目录下test文件夹下的所有的js文件添加注释
  filePath: path.resolve(__dirname, "./test/"),
  fileSuffix: "js"
})

第三步 运行脚本文件

node comment.js

Keywords

FAQs

Package last updated on 01 Apr 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc