{"name":"strip-literal","version":"1.0.0","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.1"},"devDependencies":{"@antfu/eslint-config":"^0.30.1","@antfu/ni":"^0.18.5","@types/node":"^18.11.9","bumpp":"^8.2.1","eslint":"^8.27.0","esmo":"^0.16.3","pnpm":"^7.16.0","rimraf":"^3.0.2","three":"^0.146.0","typescript":"^4.8.4","unbuild":"^0.9.4","vite":"^3.2.3","vitest":"^0.25.2","vue":"^3.2.45"},"gitHead":"ea081e25a171db0238ec534c9ae0424d7b6f55c6","_id":"strip-literal@1.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"integrity":"sha512-5o4LsH1lzBzO9UFH63AJ2ad2/S2AVx6NtjOcaz+VTT2h1RiRvbipW72z8M/lxEhcPHDBQwpDrnTF7sXy/7OwCQ==","shasum":"0a484ed5a978cd9d2becf3cf8f4f2cb5ab0e1e74","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-1.0.0.tgz","fileCount":6,"unpackedSize":11852,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQlc2AZEFryGG8FHQuq1rFGoUppTxDVLXWA2VNwKWKwAIhAMwkmFVcRBrnJUo2vuWC+7DNEis6eLtfZrtjUqJ4Xjaj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjck00ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpu+w//ZDbbVduCQRhebXiN93AWPiApTW4RkaBIumNYA7kJgKbkxRC7\r\n6UXB0+WVoti98B6XS35rp2Z8evgRTFd5LWOsATrlo5vgi7FMaoYBhPe2kFQY\r\njUdC0Aypqt3vDSwLEHd18AFLcO65rTT7ZVo6ZbpVE4Sv9mdDHk9bNKacx184\r\nnKQwH/RF+cHKnIosLrw+Urkg8+0MUfUrI+rcXBcqxqtbM4rKp9eHe0QNPEj4\r\nBQYVLB1QYeAARelldc3FJ6j/fOaMBijuFn2zZKzpjimx5PLPACNrm3HN0Ak3\r\nVtrAHz6cGRFyCkI56oynrD0dcFCQk93zqbDNMeghdwLxh68gn3jp/OR1DqCO\r\n3t6GjpL26/4dP72bSHIMk/3+QUP8dLZcMNpBZAZsqB6/wg9bJiGr3yx7crLH\r\nabTZXZeHl76LiNUTstAqhCzcuN3EPDzldhg9i4Z9VZk8ZG6A3D0d3nF9+YYr\r\nsioIj32VP5+7X34JHGraU9Se4mzx+c1uIccHhgIXzZHTB2ZRmsgNplTlpS9W\r\n+2Y/D1iOuUgmC9fj7ANFBnRbn2okxgRXgLzen0O5izZVD5aOIzLdM1BEVMXz\r\nZuY+qKyY2DvO4cgGpMICOzvttWPj813TGuLikpzjKha1tLp01atpGr4ziQCW\r\nXPT29jRECo2+TWObI2gd/bjcNDQffXQ2HNM=\r\n=E2kL\r\n-----END PGP SIGNATURE-----\r\n","size":3410,"noattachment":false,"key":"/strip-literal/-/strip-literal-1.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_1.0.0_1668435252695_0.10549642438395779"},"_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":1668435252872,"_cnpm_publish_time":1668435252872,"dist-tags":{"latest":"4.0.0"}}