pretty-comment
v0.0.3
Published
format pretty comment ## usage ```js const origin=` /** * ```js * let a = function b() {console.log("asd"); * }; * ``` * ```json * {name: 1 * } * ``` */` const prettyComment=require('pretty-comment') console.log(prettyComment(origin)) /** * ```j
Downloads
3
Readme
pretty-comment
format pretty comment
usage
const origin=`
/**
* ```js
* let a = function b() {console.log("asd");
* };
* ```
* ```json
* {name: 1
* }
* ```
*/`
const prettyComment=require('pretty-comment')
console.log(prettyComment(origin))
/**
* ```js
* let a = function b() {
* console.log("asd");
* };
* ```
* ```json
* {
* "name": 1
* }
* ```
*/