{"name":"strip-literal","version":"2.1.1","keywords":[],"author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"license":"MIT","_id":"strip-literal@2.1.1","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":"26906e65f606d49f748454a08084e94190c2e5ad","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-2.1.1.tgz","fileCount":8,"integrity":"sha512-631UJ6O00eNGfMiWG78ck80dfBab8X6IVFB51jZK5Icd7XAs60Z5y7QdSd/wGIklnWvRbUNloVzhOKKmutxQ6Q==","signatures":[{"sig":"MEUCIFvY2L4wPP/ZLckugMFjsccRLMh+229hJxkv7zNI4iMyAiEAzw1v1XwJLafabWtGtRJtzIxpu59pNdCgX87eD5n08wY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11264,"size":2972,"noattachment":false,"key":"/strip-literal/-/strip-literal-2.1.1.tgz"},"main":"./dist/index.cjs","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"funding":"https://github.com/sponsors/antfu","gitHead":"c8cf0ad3d4b35ed07b70c8a79f62179877c33055","scripts":{"dev":"unbuild --stub","lint":"eslint .","test":"vitest","bench":"vitest bench","build":"unbuild","start":"esmo src/index.ts","release":"bumpp --commit --push --tag && npm publish","typecheck":"tsc --noEmit","prepublishOnly":"nr build"},"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"repository":{"url":"git+https://github.com/antfu/strip-literal.git","type":"git"},"_npmVersion":"10.8.2","description":"Strip comments and string literals from JavaScript code","directories":{},"sideEffects":false,"_nodeVersion":"20.18.0","dependencies":{"js-tokens":"^9.0.1"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.14.2","devDependencies":{"vue":"^3.5.13","esmo":"^4.8.0","pnpm":"^9.14.2","vite":"^5.4.11","bumpp":"^9.8.1","three":"^0.170.0","eslint":"^9.15.0","rimraf":"^6.0.1","vitest":"^2.1.5","unbuild":"^2.0.0","@antfu/ni":"^0.23.1","typescript":"^5.7.2","@types/node":"^22.9.3","@antfu/eslint-config":"^3.9.2"},"_npmOperationalInternal":{"tmp":"tmp/strip-literal_2.1.1_1732338595122_0.42869480249503145","host":"s3://npm-registry-packages"},"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":1732338595309,"_cnpm_publish_time":1732338595309,"dist-tags":{"latest":"4.0.0"}}