strip-comments icon indicating copy to clipboard operation
strip-comments copied to clipboard

Strip block comments or line comments from JavaScript code.

Results 31 strip-comments issues
Sort by recently updated
recently updated
newest added

Hey there I've updated strip-comments from version 1.0.2 to 2.0.1 and now when I `strip` the content of script files sometimes it returns an empty string. I've already found the...

const strip = require("strip-comments") strip(content); content: > > // mixins for clearfix > // ------------------------ > @mixin clearfix() { > zoom: 1; > > &:before, > &:after { > content:...

It solves this issue: https://github.com/dotansimha/graphql-code-generator/issues/318 To do such thing babel-extract-comments should use babylon 7. This PR needs to be accepted first: https://github.com/jonschlinkert/babel-extract-comments/pull/4 Then this project should be updated. Thanks for...

This package not covering comments like

## Describe the bug We use strip-comments to strip comments from downleveled `.d.ts` files in AWS SDK for JavaScript (v3). We noticed that in some cases, it strips the source...

I have caught a weird bug which slows strip up to 90 seconds on very small file (28 lines). Attached project to reproduce (npm i && node ./index.js) If you...

It removes http:// and https:// links thinking they are comments because of the double slashes in http links. **Before** ``` const obj = { url: 'https://google.com' } ``` **After** ```...

For now python's block comments is tested by `/^"""/`, but python also allows `'''` to be block comment

Add an option to "preserve token positioning" basically when this mode is set, all comments are simply replaced with whitespace in such a way that surrounding code is at precisely...

Hello when stripping the comments from the file https://ok3static.oktacdn.com/assets/js/sdk/okta-signin-widget/6.8.3/js/okta-sign-in.min.js, the call never ends. ``` const fs = require("fs"); const content = fs.readFileSync(`${__dirname}/tests/okta-sign-in.min.js`, "utf8"); const strip = require("strip-comments"); strip(content); expect(true).toBe(true); ```...