{"name":"strip-literal","version":"2.1.0","packageManager":"pnpm@8.15.5","description":"Strip comments and string literals from JavaScript code","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","funding":"https://github.com/sponsors/antfu","homepage":"https://github.com/antfu/strip-literal#readme","repository":{"type":"git","url":"git+https://github.com/antfu/strip-literal.git"},"bugs":{"url":"https://github.com/antfu/strip-literal/issues"},"keywords":[],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"eslint .","prepublishOnly":"nr build","release":"bumpp --commit --push --tag && npm publish","start":"esmo src/index.ts","test":"vitest","bench":"vitest bench","typecheck":"tsc --noEmit"},"dependencies":{"js-tokens":"^9.0.0"},"devDependencies":{"@antfu/eslint-config":"^2.11.4","@antfu/ni":"^0.21.12","@types/node":"^20.11.30","bumpp":"^9.4.0","eslint":"^8.57.0","esmo":"^4.7.0","pnpm":"^8.15.5","rimraf":"^5.0.5","three":"^0.163.0","typescript":"^5.4.3","unbuild":"^2.0.0","vite":"^5.2.7","vitest":"^1.4.0","vue":"^3.4.21"},"_id":"strip-literal@2.1.0","gitHead":"5efd70f7c4ae84ee180d600b403cf99e58e21c9f","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==","shasum":"6d82ade5e2e74f5c7e8739b6c84692bd65f0bd2a","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-2.1.0.tgz","fileCount":8,"unpackedSize":11267,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHR2oa/Drb4dX0GvATK+XuHsupxDzh5/1KGHZGFw0jvAAiAcm51VtG3wR9N0UKsUrLXArdD1xg79I+3SqJOPLz/2Ig=="}],"size":2974,"noattachment":false,"key":"/strip-literal/-/strip-literal-2.1.0.tgz"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-literal_2.1.0_1711707887593_0.3708177248602529"},"_hasShrinkwrap":false,"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<!-- eslint-disable no-template-curly-in-string -->\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'/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2022 [Anthony Fu](https://github.com/antfu)\n","publish_time":1711707887806,"_cnpm_publish_time":1711707887806,"dist-tags":{"latest":"4.0.0"}}