首页 > Web开发 > 详细

json去注释

时间:2020-05-13 13:06:48      阅读:65      评论:0      收藏:0      [点我收藏+]

json没有注释!!!

技术分享图片

json去注释

1.安装strip-json-comment

$ npm install --global strip-json-comments-cli

2.使用说明

Usage
$ strip-json-comments --help

  Usage
    $ strip-json-comments <input-file> > <output-file>
    $ strip-json-comments < <input-string>

  Options
    --no-whitespace  Remove comments instead of replacing them with whitespace

  Example
    $ strip-json-comments input.json > output.json

3.使用示例

strip-json-comments input.json > output.json

相关链接

https://github.com/sindresorhus/strip-json-comments-cli
https://github.com/sindresorhus/strip-json-comments

json去注释

原文:https://www.cnblogs.com/tomtellyou/p/12880898.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!