{"name":"strip-literal","version":"1.0.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.2"},"devDependencies":{"@antfu/eslint-config":"^0.35.1","@antfu/ni":"^0.19.0","@types/node":"^18.11.18","bumpp":"^8.2.1","eslint":"^8.33.0","esmo":"^0.16.3","pnpm":"^7.26.3","rimraf":"^4.1.2","three":"^0.149.0","typescript":"^4.9.5","unbuild":"^1.1.1","vite":"^4.1.1","vitest":"^0.28.3","vue":"^3.2.47"},"gitHead":"9fb15450de67c87be4f9a24f64ce5bfab0de8f22","_id":"strip-literal@1.0.1","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-QZTsipNpa2Ppr6v1AmJHESqJ3Uz247MUS0OjrnnZjFAvEoWqxuyFuXn2xLgMtRnijJShAa1HL0gtJyUs7u7n3Q==","shasum":"0115a332710c849b4e46497891fb8d585e404bd2","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-1.0.1.tgz","fileCount":6,"unpackedSize":11975,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9iZVv2um/IKEaFlVrTyKEP7V03QDgEJ+LuCh3AzS0nAiEAlHqNHtLfX7cF76RFOSTPGgv1Iwwhr0KPxMRjMhEhpQg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3NRLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvchAAjsvvQoR3ZQ6oOsEBRh8As7HmcHdS8H0AkkRsM1txDAQp8G5d\r\nTuL65AJK+AQ4/iZLVREpt7xs4LkpaJREMPxSy7bp+1ldNiSIZOUWmV2t3iz9\r\ns4Hb2zb93Qz9fzsiSdPbexaRoHMx+Dte2wITRaZQgrQwFqoyA7MMifqm5r4C\r\nnSSVSkzeXokr3nnNGjse1RqD27EWo1iM5Nf6G/EqtYU1cGTeBOKKAMyK+F7V\r\nYuOYLkm9TnzIw8anZSZr22BwkcMNb1TS0u9yGkHtyAAlsAk39I4tGAEW7lFi\r\n7EqoZ94k2H7D1dwWOMEdb5mOglD0hrNPv6GRECTdAokRGeaemijxZ3Yid5Kt\r\nAYs5zKFNrFRrz0wIpZdTshz5a/hI0vkzNAweIYE/uCWsx0GYishf3Jq+J3cc\r\nnp6UL/7DwI2D3QW4ad29sdO3dT7dyE/SHVNTwbRKuhtLtzDOOBCY7Rfl7d2r\r\nCgON7eDkB9qCvbAWbUxyYBu3ysMaEdoRZ8myBYl2uYNi3q6yq+gw5QyHWRMI\r\nFhl2HQ3OWvUmiYZoem0dKYl1V8rG7DgYpJc9vFTYhlluPhbSxGiDY4XT7YBH\r\nlPnG/43vjkkgrP3Jh2/5Bb9TIqQ8c32jksd6iSrbFktg0q7cD/iF/1t0CR7T\r\nxRvrw8N8fmREBaiimNDHDG7zWPpc/BaOyQ4=\r\n=6Oi3\r\n-----END PGP SIGNATURE-----\r\n","size":3445,"noattachment":false,"key":"/strip-literal/-/strip-literal-1.0.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_1.0.1_1675416651307_0.29620481195512727"},"_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":1675416651460,"_cnpm_publish_time":1675416651460,"dist-tags":{"latest":"4.0.0"}}