Skip to content

Migrate jsonc-parser to strip-json-comments #52

Description

@kricsleo

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

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions