{"name":"strip-literal","version":"0.2.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":"8dc9d0b8cf03b55a7d3622ecf6186944162fb8a7","_id":"strip-literal@0.2.0","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"integrity":"sha512-pqhiiFRDifA2CRVH0Gmv6MDbd2b27MS0oIqqy7JCqfL5m2sh68223lmEK2eoBXp4vNaq8G1Wzwd9dfQcWszUlg==","shasum":"91c8318fe6aeec69b0ee77682ddc9e55b7edfe1d","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-0.2.0.tgz","fileCount":6,"unpackedSize":5144,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFUrHMU1F3dROyriC01okAvvPbTqXIjeoVKJaUB8Z7AOAiA1Te7EQIDfRbjYam3VxZfP+slsOIvPpeMT6VMl89SAnA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJideRpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmquvQ//T3mxMdXYRcXWKKMOiELHg3guqZo2Zy+Q798xNWrJXsKgE+vy\r\nv96kmTyazgpxyFnyBVC3oPVqnWVBLyQ852JhexR0Qcw1PJerl9z0lt7M3/8Y\r\nydbD/WzXh5gGq4uMBvuH+JR7SMaBwEv7efJgU+PghMYsl1uiY9hmju+iARaG\r\n8mkzFBh5K+JSqHnKMLLFGHcejiRHij1K1vLelYF42spPNIulzAORwvVv5/FF\r\nu2wT/ysvoB/YOeot1yXYobyjF2JN8sRtrsL5u40swXQq431Yae//G+qd/eaJ\r\nlXokzY7q76s79oWamauu0I+KSuthL4qRiaUMp3rSBZA3SnXCgwQJXZ8JRxLz\r\nDaiw0tfchXJDI/igjctKLmUvXC0TrEJXKFyVbarE0mKXgy1+5/0XO3B7oRvd\r\nPfN6yQLCU0i5bW5KROzXQRypWFw7OaXIzZ//bMLEc9tSH8ToXdz0rLMlB41G\r\nYmuZdjVPfhjhQbsP9z29HVVoNkczosSqW9GZQEVfkiCZK1XoMklHcbRYDUrG\r\njT72ZNvA81PajkXziEb8LZoo6CQtcnaGfX8j5c1THtkbjcmHmWy+fKpBaUl9\r\nWVhL+H0hYczvSD+th+ovAbBBBtWNlDCbugwzVXwKWiK2htOU15VQwlBlgEft\r\nr+isj03nsqXiYzjtvEvw2Gm4z+7F755bRmw=\r\n=87+t\r\n-----END PGP SIGNATURE-----\r\n","size":2281,"noattachment":false,"key":"/strip-literal/-/strip-literal-0.2.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.2.0_1651893353773_0.24789095723795884"},"_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":1651893353934,"_cnpm_publish_time":1651893353934,"dist-tags":{"latest":"4.0.0"}}