{"name":"strip-literal","version":"2.0.0","packageManager":"pnpm@8.13.1","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":"^8.0.2"},"devDependencies":{"@antfu/eslint-config":"^2.6.1","@antfu/ni":"^0.21.12","@types/node":"^20.10.5","bumpp":"^9.2.1","eslint":"^8.56.0","esmo":"^4.0.0","pnpm":"^8.13.1","rimraf":"^5.0.5","three":"^0.160.0","typescript":"^5.3.3","unbuild":"^2.0.0","vite":"^5.0.10","vitest":"^1.1.0","vue":"^3.4.0"},"gitHead":"d96d881098b3f57529d0f821993d68337fbb8df5","_id":"strip-literal@2.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-f9vHgsCWBq2ugHAkGMiiYY+AYG0D/cbloKKg0nhaaaSNsujdGIpVXCNsrJpCKr5M0f4aI31mr13UjY6GAuXCKA==","shasum":"5d063580933e4e03ebb669b12db64d2200687527","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-2.0.0.tgz","fileCount":8,"unpackedSize":11097,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8PChl3qt2u/MhZiUrQzekIM9ceTXr3nosZaEGRPTvfAiBEnfVQP/t2OLQUcKAnkIm6JwiQlvTQPZ9TtarkjUu6hQ=="}],"size":2928,"noattachment":false,"key":"/strip-literal/-/strip-literal-2.0.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.0.0_1703851449384_0.3437408603193959"},"_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":1703851449592,"_cnpm_publish_time":1703851449592,"dist-tags":{"latest":"4.0.0"}}