{"name":"strip-literal","version":"0.4.1","packageManager":"pnpm@7.0.0","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","require":"./dist/index.cjs","import":"./dist/index.mjs"}},"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":{"acorn":"^8.8.0"},"devDependencies":{"@antfu/eslint-config":"^0.26.3","@antfu/ni":"^0.18.0","@types/node":"^18.7.16","bumpp":"^8.2.1","eslint":"^8.23.0","esmo":"^0.16.3","pnpm":"^7.11.0","rimraf":"^3.0.2","three":"^0.144.0","typescript":"^4.8.3","unbuild":"^0.8.10","vite":"^3.1.0","vitest":"^0.23.2","vue":"^3.2.39"},"gitHead":"a6fda8cf7dbb290861f30092ae6c5bf62b601491","_id":"strip-literal@0.4.1","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"integrity":"sha512-z+F/xmDM8GOdvA5UoZXFxEnxdvMOZ+XEBIwjfLfc8hMSuHpGxjXAUCfuEo+t1GOHSb8+qgI/IBRpxXVMaABYWA==","shasum":"fb9316ad35071c4229ed67aad1a0467e5a9b0c1a","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-0.4.1.tgz","fileCount":6,"unpackedSize":11869,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFu3XhAMdk3r2PKUCHUgr7rL0sYaXgtqYLxgET93eJlbAiAOd7sB2Rt3oA2e7DPLhHeNZyx3QLgfXiX+CM6VbxUEzQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH5zAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXNw/+LF+6bASN1WiNgh7Sb939x3soQZGtKt3+CdMRo/3hQzSau0iE\r\neBNwbDEPIDfxnvYNIbCR1kYgNO+7Xet7p1sUSgzeO8aSAb63G1fKydIB7aBT\r\n5vlFn0OYUm+iXhePvwWhrT6PSK1KsvaOaaO4jIXiy4S0OlkFhQq9/i8Oxb0J\r\nRDFv1NuaFyK1ua3Ml73pGoRgAnufOjS65qncMaW+SaGibCiQvpAsEdspfK05\r\nbWtz4el4+3EAsn448qb75jdmTvlTLDsoTRW8mV8C6ztsM7n2qcW64GD/glqM\r\nVQZ5EhStdKrDxn85r2mIofyWgCECejtthPX/53NEwNnoBIPAYzFS8VFZgl6M\r\nMvU2lhpd8ogWwEJXs5oGISmjT5IpMRRYzNyukpfVpZ1g9qoKtGgrZkm1Bf4k\r\nOMprZ7bjDmQ74BvsxgtQfbcB0m8eLtoindtCpIqT+pHJo8k4OxaLv4HcyZLX\r\nrvsBgaByw3bbYv/BpRygB2XgyOfMcbWgqmuWcyvcbdEfvNx27T59bIwted3D\r\nr9jJyu14AFqXb6jN1E3s7C2y8WmbqMBvkIxyjsdRz7zy/g5gganv2s7YUcbj\r\nTfDl4FZRw5D1eK0c80hIb0DEp/lkXB1+5GbPpK2pB9kc7xxbDQZIadcZ8Kz3\r\nUJfZw+4l9tDGlQu9c5B4RoN3OhdMQtcBEVQ=\r\n=sbdi\r\n-----END PGP SIGNATURE-----\r\n","size":3440,"noattachment":false,"key":"/strip-literal/-/strip-literal-0.4.1.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.1_1663016128727_0.8159662258379139"},"_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":1663016128913,"_cnpm_publish_time":1663016128913,"dist-tags":{"latest":"4.0.0"}}