/ student-intifada / node_modules / strip-literal /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]dist/a year ago -  
[DIR]node_modules/a year ago -  
[   ]LICENSEa year ago1.1K 
[TXT]README.mda year ago837 595aea1 more query options + view options [كارل مبارك]
[   ]package.jsona year ago1.5Kafd0ccc remove unused [كارل مبارك]
README.md

strip-literal

NPM version

Strip comments and string literals from JavaScript code. Powered by js-tokens.

Usage

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.

Sponsors

License

MIT License © 2022 Anthony Fu

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80