GitShow/sindresorhus/strip-debug
sindresorhus

strip-debug

Strip console, alert, and debugger statements from JavaScript code

by sindresorhus
Star on GitHubForknpm

JavaScript

86 stars16 forks7 contributorsQuiet · 9mo agoSince 2014v8.0.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus41 contributions
kevva
kevva2 contributions
shinnn
shinnn2 contributions
NotWoods
NotWoods2 contributions
pwmckenna
pwmckenna1 contribution
philippbosch
philippbosch1 contribution
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
evyros
Ignore / Except specific linesClosedIssue

Nice, but how about an ability to ignore a specific line using a comment? For example:

evyros · 9mo ago
wzup
Is there a way to preserve alerts?ClosedIssue

I have a React component that calls inside a function. The function is called as a event handler. Because there is no way to set an inline attribute in React, I have to do it this way: So I want to preserve s. How to achieve it?

wzup · 4y ago
NotWoods
Support globalThis and all console methodsMergedPR

Follow up on #24 to fix support. Also adds support for . I changed algorithm from what was written in #21 to something based on rocambole-strip-console and rocambole-strip-alert. Also added test for the new features.

NotWoods · 5y ago
Structured data for AI agents

Repository: sindresorhus/strip-debug. Description: Strip console, alert, and debugger statements from JavaScript code Stars: 86, Forks: 16. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v8.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, kevva, shinnn, NotWoods, pwmckenna, philippbosch, Richienb.

·@ofershap

Replace github.com with gitshow.dev