{"name":"strip-literal","version":"1.3.0","packageManager":"pnpm@8.6.11","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","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"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.10.0"},"devDependencies":{"@antfu/eslint-config":"^0.40.0","@antfu/ni":"^0.21.5","@types/node":"^20.4.5","bumpp":"^9.1.1","eslint":"^8.46.0","esmo":"^0.17.0","pnpm":"^8.6.11","rimraf":"^5.0.1","three":"^0.155.0","typescript":"^5.1.6","unbuild":"^1.2.1","vite":"^4.4.8","vitest":"^0.34.1","vue":"^3.3.4"},"gitHead":"3f2e97ef1f7e07adb8c4d78245bb89b6bccdcf95","_id":"strip-literal@1.3.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-PugKzOsyXpArk0yWmUwqOZecSO0GH0bPoctLcqNDH9J04pVW3lflYE0ujElBGTloevcxF5MofAOZ7C5l2b+wLg==","shasum":"db3942c2ec1699e6836ad230090b84bb458e3a07","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-1.3.0.tgz","fileCount":6,"unpackedSize":15855,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3nu7wX9c1wLTLwF0CqLumLMx0hiNrE61/btG7iKbTlAiAZPTkXFOp0p5arXgmUgPu1yTeI46MRHc2HcPLW4JeQOQ=="}],"size":4055,"noattachment":false,"key":"/strip-literal/-/strip-literal-1.3.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.3.0_1691053590478_0.3580856735851523"},"_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":1691053590634,"_cnpm_publish_time":1691053590634,"dist-tags":{"latest":"4.0.0"}}