Skip to content

issues Search Results · repo:sindresorhus/strip-json-comments language:JavaScript

Filter by

33 results
 (71 ms)

33 results

insindresorhus/strip-json-comments (press backspace or delete to remove)

Can *. mjs output be supported within the published NPM package? image
  • RSS1102
  • 1
  • Opened 
    on Feb 3
  • #62

JSDoc says it s true by default, while readme.md and the source code say it s false
  • azerum
  • Opened 
    on Jul 3, 2023
  • #60

After installing strip-json-comments v4 I started to get export default function stripJsonComments(jsonString, {whitespace = true} = {}) { ^^^^^^ SyntaxError: Unexpected token export ...
  • pauldcomanici
  • 2
  • Opened 
    on Apr 21, 2022
  • #58

tsconfig.json supports comments but also trailing commas. For example: { exclude : [], // trailing comma } It would be nice to have a flag that enables stripping of these trailing commas. I bet we ...
enhancement
help wanted
  • cspotcode
  • 2
  • Opened 
    on Mar 2, 2022
  • #57

as the author of this package doesn t want to make it hybrid, the document should be updated to indicate the correct version that should be used based on the module type. if your package is a commonjs ...
  • its-dibo
  • 1
  • Opened 
    on Feb 28, 2022
  • #56

not all modulaes that use strip-json-comments are migrated to esm, so you will need to support commonjs modules this supporting is very easy in your package.json export:{ import: ./index.mjs , require: ...
  • its-dibo
  • 2
  • Opened 
    on Feb 16, 2022
  • #54

require() of ES Module node_modules/strip-json-comments/index.js not supported. Instead change the require of index.js to a dynamic import() which is available in all CommonJS modules minimal repo version: ...
  • its-dibo
  • 3
  • Opened 
    on Jan 14, 2022
  • #53

updating to node v16 where ES6 modules are supported, I got the following error caused by strip-json-comments Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/strip-json-comments/index.js ...
  • its-dibo
  • 1
  • Opened 
    on Nov 27, 2021
  • #52

For example, [] */ should be ignored. https://github.com/sindresorhus/strip-json-comments/blob/ad70a18c06f5a3c93f02f855489d1c0f900f43d3/test.js#L67-L70
bug
help wanted
  • sindresorhus
  • Opened 
    on Nov 24, 2021
  • #51

I have had this line in my project for at least the last 4 years: var stripJsonComments = require( strip-json-comments ); your module from npm now triggers an error where it didn t before. I cannot use ...
  • pjshumphreys
  • 1
  • Opened 
    on Oct 14, 2021
  • #49
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.