![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | dist/ | a year ago | - | |
![]() | node_modules/ | a year ago | - | |
![]() | LICENSE | a year ago | 1.1K | |
![]() | README.md | a year ago | 837 | 595aea1 more query options + view options [كارل مبارك] |
![]() | package.json | a year ago | 1.5K | afd0ccc remove unused [كارل مبارك] |
Strip comments and string literals from JavaScript code. Powered by 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