Search
Ctrl + K
Strip comments and string literals from JavaScript code
npm install strip-literal
99.5
Supply Chain Risk
74.6
Quality
77.7
Maintenance
100
Vulnerability
Open
Total
Closed
Merged
v2.1.0
Published on 29 Mar 2024
v2.0.0
Published on 29 Dec 2023
v1.3.0
Published on 03 Aug 2023
v1.2.0
Published on 02 Aug 2023
v1.1.0
v1.0.1
Published on 03 Feb 2023
View all 12 releases
View all 6 contributors
83 Stars
41 Commits
9 Forks
2 Watching
1 Branches
6 Contributors
Updated on 24 Aug 2024
Minified
Minified + Gzipped
Bundlephobia
TypeScript (98.75%)
JavaScript (1.25%)
Cumulative downloads
Total Downloads
Last day
-11.9%
159,654
Compared to previous day
Last week
-2.6%
4,221,921
Compared to previous week
Last month
-17.5%
17,238,404
Compared to previous month
Last year
216%
199,139,483
Compared to previous year
1
14
Strip comments and string literals from JavaScript code. Powered by js-tokens.
js-tokens
import { stripLiteral } from 'strip-literal' stripLiteral('const foo = `//foo ${bar}`') // 'const foo = ` ${bar}`'
Comments, string literals will be replaced by spaces with the same length to keep the source map untouched.
MIT License © 2022 Anthony Fu
Score
Last Scanned on
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
common-tags
a few common utility template tags for ES2015
@visulima/colorize
Terminal and Console string styling done right.
proper-tags
A few common utility template tags for ES2015
mltl
Multi-line template literals