{"name":"strip-literal","version":"3.0.0","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"strip-literal@3.0.0","maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"homepage":"https://github.com/antfu/strip-literal#readme","bugs":{"url":"https://github.com/antfu/strip-literal/issues"},"dist":{"shasum":"ce9c452a91a0af2876ed1ae4e583539a353df3fc","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-3.0.0.tgz","fileCount":8,"integrity":"sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==","signatures":[{"sig":"MEYCIQCzzeJm6v47vneIePwmP4hrH21Mz5ZeQjLl544jiw3HnAIhAIppOh+c/COnbpzPks1JWl6ZHxo4cN49Emd3gQhmpYWH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11160,"size":2942,"noattachment":false,"key":"/strip-literal/-/strip-literal-3.0.0.tgz"},"main":"./dist/index.mjs","type":"module","_from":"file:strip-literal-3.0.0.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"funding":"https://github.com/sponsors/antfu","scripts":{"dev":"unbuild --stub","lint":"eslint .","test":"vitest","bench":"vitest bench","build":"unbuild","start":"esmo src/index.ts","release":"bumpp && pnpm publish","typecheck":"tsc --noEmit"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"_resolved":"/private/var/folders/30/nymxcyb909ggq2j5lwn7b_600000gn/T/6801df552852dc88db1f8443905abc90/strip-literal-3.0.0.tgz","_integrity":"sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==","repository":{"url":"git+https://github.com/antfu/strip-literal.git","type":"git"},"_npmVersion":"10.9.0","description":"Strip comments and string literals from JavaScript code","directories":{},"sideEffects":false,"_nodeVersion":"22.12.0","dependencies":{"js-tokens":"^9.0.1"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.13","esmo":"^4.8.0","pnpm":"^9.15.4","vite":"^6.0.7","bumpp":"^9.10.1","three":"^0.172.0","eslint":"^9.18.0","rimraf":"^6.0.1","vitest":"^2.1.8","unbuild":"^3.3.1","@antfu/ni":"^23.2.0","typescript":"^5.7.3","@types/node":"^22.10.6","@antfu/eslint-config":"^3.14.0"},"_npmOperationalInternal":{"tmp":"tmp/strip-literal_3.0.0_1736938360811_0.20970035561264644","host":"s3://npm-registry-packages-npm-production"},"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> [!NOTE]\n> Since v4.0.0, this package is ESM-only. Use v3.x if you need CommonJS.\n\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' alt=\"Sponsors\"/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2022 [Anthony Fu](https://github.com/antfu)\n","publish_time":1736938360987,"_cnpm_publish_time":1736938360987,"dist-tags":{"latest":"4.0.0"}}