{"_id":"strip-literal@4.0.0","bugs":{"url":"https://github.com/antfu/strip-literal/issues"},"dist":{"shasum":"01bb0daf7af141ce8d2328bdeecc6b1597aebc0c","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-4.0.0.tgz","fileCount":5,"integrity":"sha512-PaqAvfUZKBwc/SLmNZtHmzK+v19Z4O4eS3cKPeGvbIv/U3pnyEq4Tuw3/4v/FwfM8VQaEawsyCcOQ0P+kpwWWw==","signatures":[{"sig":"MEYCIQCw3pTLIBXVRTH9VthhTs76RbkVMjeGwKX7lQPsHs72twIhAJsmVU9c9rvVo6M/lxVk4oxWVirc5pu0tFbk8Xwc8bcW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDBD9zQwrcQL/Ncapuu9SKbH73C1mIa92ta/LOtGrPMcwIhAMQHzIbo/w45GPHfoZpPvjWoN5CxwjlPWWdyzdxUIyav"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/strip-literal@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6519,"size":2751,"noattachment":false,"key":"/strip-literal/-/strip-literal-4.0.0.tgz"},"name":"strip-literal","type":"module","types":"./dist/index.d.mts","author":"Anthony Fu <anthonyfu117@hotmail.com>","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"funding":"https://github.com/sponsors/antfu","license":"MIT","scripts":{"dev":"tsdown --watch","lint":"eslint","test":"vitest","bench":"vitest bench","build":"tsdown","start":"tsx src/index.ts","release":"bumpp","typecheck":"tsc"},"version":"4.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:74c9b49a-b1f7-4abb-9ac0-0317ca1073b7"}},"homepage":"https://github.com/antfu/strip-literal#readme","keywords":[],"repository":{"url":"git+https://github.com/antfu/strip-literal.git","type":"git"},"description":"Strip comments and string literals from JavaScript code","directories":{},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"sideEffects":false,"_nodeVersion":"24.18.0","dependencies":{"js-tokens":"^10.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.1","vue":"^3.5.40","pnpm":"^11.18.0","vite":"^8.1.5","bumpp":"^12.1.1","three":"^0.185.1","eslint":"^10.8.0","tsdown":"^0.22.14","vitest":"^4.1.10","publint":"^0.3.22","@antfu/ni":"^30.3.0","typescript":"^5.9.3","@types/node":"^26.1.2","@antfu/eslint-config":"^9.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strip-literal_4.0.0_1785376215481_0.0314383973935497"},"readme":"# strip-literal\n\n[![NPM version](https://img.shields.io/npm/v/strip-literal?color=a1b858&label=)](https://www.npmjs.com/package/strip-literal)\n\nStrip comments and string literals from JavaScript code. Powered by [`js-tokens`](https://github.com/lydell/js-tokens).\n\n## Usage\n\n> [!NOTE]\n> Since v4.0.0, this package is ESM-only. Use v3.x if you need CommonJS.\n\n\n```ts\nimport { stripLiteral } from 'strip-literal'\n\nstripLiteral('const foo = `//foo ${bar}`') // 'const foo = `       ${bar}`'\n```\n\nComments, string literals will be replaced by spaces with the same length to keep the source map untouched.\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt=\"Sponsors\"/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2022 [Anthony Fu](https://github.com/antfu)\n","publish_time":1785376215580,"_cnpm_publish_time":1785376215580,"dist-tags":{"latest":"4.0.0"}}