{"name":"strip-literal","version":"3.1.0","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"strip-literal@3.1.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":"222b243dd2d49c0bcd0de8906adbd84177196032","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-3.1.0.tgz","fileCount":8,"integrity":"sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==","signatures":[{"sig":"MEQCIDxaBQRCsZXa6h7qmdSfEEZsnh25ONcnXZ6t6UvE/wG6AiBTM24HqmnFI+pvmVoX+DDD9zwuA+LfrR1QfK1hr2DSXw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/strip-literal@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10853,"size":2959,"noattachment":false,"key":"/strip-literal/-/strip-literal-3.1.0.tgz"},"main":"./dist/index.mjs","type":"module","_from":"file:strip-literal-3.1.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":"tsx src/index.ts","release":"bumpp","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:74c9b49a-b1f7-4abb-9ac0-0317ca1073b7"}},"_resolved":"/tmp/7f7974737d77dbbfcc0b41aee70e5c84/strip-literal-3.1.0.tgz","_integrity":"sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==","repository":{"url":"git+https://github.com/antfu/strip-literal.git","type":"git"},"_npmVersion":"11.6.1","description":"Strip comments and string literals from JavaScript code","directories":{},"sideEffects":false,"_nodeVersion":"22.19.0","dependencies":{"js-tokens":"^9.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.20.6","vue":"^3.5.22","pnpm":"^10.17.1","vite":"^7.1.7","bumpp":"^10.2.3","three":"^0.180.0","eslint":"^9.36.0","rimraf":"^6.0.1","vitest":"^3.2.4","unbuild":"^3.6.1","@antfu/ni":"^26.0.1","typescript":"^5.9.2","@types/node":"^24.5.2","@antfu/eslint-config":"^5.4.1"},"_npmOperationalInternal":{"tmp":"tmp/strip-literal_3.1.0_1759008542706_0.5736232517564259","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":1759008542895,"_cnpm_publish_time":1759008542895,"dist-tags":{"latest":"4.0.0"}}