/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
strip-json-comments
/
/var/www/greso.tech/server/nsm/node_modules/strip-json-comments
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
807
0644
edit
dl
rm
index.js
2219
0644
edit
dl
rm
license
1117
0644
edit
dl
rm
package.json
855
0644
edit
dl
rm
readme.md
1961
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/strip-json-comments/index.d.ts
(807B)
declare namespace stripJsonComments { interface Options { /** Replace comments with whitespace instead of stripping them entirely. @default true */ readonly whitespace?: boolean; } } /** Strip comments from JSON. Lets you use comments in your JSON files! It will replace single-line comments `//` and multi-line comments `/**\/` with whitespace. This allows JSON error positions to remain as close as possible to the original source. @param jsonString - Accepts a string with JSON. @returns A JSON string without comments. @example ``` const json = `{ // Rainbows "unicorn": "cake" }`; JSON.parse(stripJsonComments(json)); //=> {unicorn: 'cake'} ``` */ declare function stripJsonComments( jsonString: string, options?: stripJsonComments.Options ): string; export = stripJsonComments;
Save
cmd:
run