1.0.4 • Published 2 years ago

@youngjs/notes-parsing v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

使用

const { parsing } = require("@youngjs/notes-parsing");
const list = parsing(filePath)  //filePath 文件路径
console.log(list)
/**
返回对象数组示例:
[
  {
    className: "",//类名
    classText: "",//类注释
    isClass: false,//类名
    funcName: "",//方法名
    funcText: "",//方法注释
    isFunc: false,//类方法
    string: str, //注释
    nextLine: "",
    params: {},//如果是方法,参数
    returns: {},/如果是方法,返回结果
  }
]
 */

基于 koa,使用 typescript,专注于高效开发后端接口的 nodejs 框架

Image text

详细文档可查看【Youngjs