Describe the feature
strip-json-comments is more lightweight: 559B(gzip) vs 6.7KB(gzip) of jsonc-parser. Yes! Smaller bundle! 🥰
strip-json-comments is slightly faster. (Performance varies with different JSON content sizes. So this might not be the main consideration)
strip-json-comments/parseJSONC
1.15x faster than microsoft/node-jsonc-parser
strip-json-comments is also widely used (68,837,155 downloads/week, three times of jsonc-parser. Also this isn't the main consideration.)
Downsides:
strip-json-comments is less tolerant than jsonc-parser and may encounter issues with certain edge cases: sindresorhus/strip-json-comments#51
Additional information
Describe the feature
strip-json-commentsis more lightweight:559B(gzip) vs6.7KB(gzip) ofjsonc-parser. Yes! Smaller bundle! 🥰strip-json-commentsis slightly faster. (Performance varies with different JSON content sizes. So this might not be the main consideration)strip-json-commentsis also widely used (68,837,155 downloads/week, three times ofjsonc-parser. Also this isn't the main consideration.)Downsides:
strip-json-commentsis less tolerant thanjsonc-parserand may encounter issues with certain edge cases: sindresorhus/strip-json-comments#51Additional information