1. 首页
  2. 数据库
  3. 其它
  4. babel normalize comments:将注释合并到一个标准化字符串中 源码

babel normalize comments:将注释合并到一个标准化字符串中 源码

上传者: 2021-02-18 20:58:49上传 ZIP文件 33.2KB 热度 6次
巴别规范化评论 将注释合并到一个规范化的字符串中 以多种不同的注释样式保留缩进 安装 yarn add babel-normalize-comments 用法 const babylon = require('babylon'); const { normalizeComments, normalizeComment } = require('babel-normalize-comments'); let ast = babylon.parse(code); // normalize an array of comment nodes normalizeComments(ast.comment
下载地址
用户评论