npm i gherkin-parse csv-parse
const parse = require("gherkin-parse")
const fs = require("fs")
const jsonObject = parse.convertFeatureFileToJson(featurePath)
const featureString = parse.convertJSONToFeatureFile(jsonObject)// 没有包含comment
const comment =jsonObject.comments.map(item=>item.text).join("\n")
// update feature file
fs.writeFileSync(featurePath,`${featureString}\n\n\n${comment}` )