strip-json-comments-cli

2018-10-28 admin

strip-json-comments-cli是什么

什么是strip-json-comments-cli,Strip comments from JSON. Lets you use comments in your JSON files!

strip-json-comments-cli使用教程帮助文档

strip-json-comments-cli Build Status

Strip comments from JSON. Lets you use comments in your JSON files!

Install

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

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

Related

License

MIT © Sindre Sorhus

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-43835.html

文章标题:strip-json-comments-cli

回到顶部