{"name":"strip-literal","version":"0.4.0","packageManager":"pnpm@7.0.0","description":"Strip comments and string literals from JavaScript code","keywords":[],"homepage":"https://github.com/antfu/strip-literal#readme","bugs":{"url":"https://github.com/antfu/strip-literal/issues"},"license":"MIT","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/antfu/strip-literal.git"},"funding":"https://github.com/sponsors/antfu","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"sideEffects":false,"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","typecheck":"tsc --noEmit"},"dependencies":{"acorn":"^8.7.1"},"devDependencies":{"@antfu/eslint-config":"^0.23.0","@antfu/ni":"^0.16.2","@types/node":"^17.0.31","bumpp":"^7.1.1","eslint":"^8.14.0","esmo":"^0.14.1","pnpm":"^7.0.0","rimraf":"^3.0.2","typescript":"^4.6.4","unbuild":"^0.7.4","vite":"^2.9.7","vitest":"^0.10.2"},"gitHead":"b679e116cf21cec39bcd518e8523a021dd3d85b5","_id":"strip-literal@0.4.0","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"integrity":"sha512-ql/sBDoJOybTKSIOWrrh8kgUEMjXMwRAkZTD0EwiwxQH/6tTPkZvMIEjp0CRlpi6V5FMiJyvxeRkEi1KrGISoA==","shasum":"0f90e86daecc1eb23c61c62d25238ffad4524634","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-0.4.0.tgz","fileCount":6,"unpackedSize":8871,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEqBZc77GrgdqCwLJTBNQvxQbm9ZRYrYF0iOLPDIsk9mAiEAlIV3ZEjw5ztcReeNGwYXLgAizQT6rLPHtpM2+rZ/XIQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiqCLCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1hg//ZtUvl18q9E9HklQiultFglULQIFMbR99d3Oi2Ld1pEhYjXPj\r\nwG8s0N3ec8T4JXfQF6gDvnhoR5Bn95MDjOIetIQsGb+ZfCnCzrSVg8xHPO2n\r\nddN80W1Shk+DV3d0B/5u3EbewDGhojLbvT7WnPQ5cvmNHvGS4N8a6b98xmam\r\n+35pSwPNRvDPliD7XiwDId08LBu/mWOFqc1Y5qancnvTyXfK6FQ1PQuPe0X9\r\n+KFYDmhSv7QmnzF9MsX4KZ6iv5dnrsPlNHld1i/fJWZoBasY03FqX1SDtJgl\r\n7OeQTiqvH8CZzRXp3IRheMLRCaW6Hc1KuAdbnOjme2p06Je4aXY734zQVV0i\r\nqJircJL7L2hwr1aqZID+9OIzMBFmk6dYSE1tDiEE8T7UvpikDvYrZRyqhzXo\r\ncZBn9bfn8IAgi2W+umket5nUIOb1xAa6UL5aH9EPFTfyx0GsZp8uD3pSdCfr\r\n6h5icwKhi1AEpMo9croZBhH7Mriwpt/9Vc9i9wwECmtw3x5roWgpqKf1mXNH\r\n2UPjl1e1FhgcNRrSamS5eMUf1pJUuW1K+hLXmjzO2jdZMnt7pu9GVkapFim/\r\n519tCUVIQ2F8FFqv5nxTeAvB6cOP87PCoiMesQjvoMIz1DRONS/8CZ5i2wi6\r\nJIqQpOJxmWWu2R+jPFYz5sJ0PnM4t2Qx05s=\r\n=Qxyg\r\n-----END PGP SIGNATURE-----\r\n","size":3051,"noattachment":false,"key":"/strip-literal/-/strip-literal-0.4.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_0.4.0_1655186114425_0.4347646116793311"},"_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":1655186114650,"_cnpm_publish_time":1655186114650,"dist-tags":{"latest":"4.0.0"}}