{"name":"strip-literal","version":"0.4.2","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.0"},"devDependencies":{"@antfu/eslint-config":"^0.26.3","@antfu/ni":"^0.18.0","@types/node":"^18.7.16","bumpp":"^8.2.1","eslint":"^8.23.0","esmo":"^0.16.3","pnpm":"^7.11.0","rimraf":"^3.0.2","three":"^0.144.0","typescript":"^4.8.3","unbuild":"^0.8.10","vite":"^3.1.0","vitest":"^0.23.2","vue":"^3.2.39"},"gitHead":"59236e71754e013621a785979a199a0bca43a689","_id":"strip-literal@0.4.2","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"integrity":"sha512-pv48ybn4iE1O9RLgCAN0iU4Xv7RlBTiit6DKmMiErbs9x1wH6vXBs45tWc0H5wUIF6TLTrKweqkmYF/iraQKNw==","shasum":"4f9fa6c38bb157b924e9ace7155ebf8a2342cbcf","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-0.4.2.tgz","fileCount":6,"unpackedSize":11917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpkDbsfs+6/CU3+Yr9nVW1eEGV5xwG90qQc/Xbgsvp3QIgMmNJrphvB0hTEFlwHlVGUINMPsHkQ3QCp4LNNLwvf5k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJs+hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXgw//X4+ANrqF9gA43f1OpJMfcDZ0PMsapuOGKk3mS6g1SeWJEMWj\r\nRk63TFtzAzCZTXVvxY8Yhfiz1isjP6YCCfALItyMIHKWc3BaQ0A3Ls2iioHf\r\nfIDKpLLPQL6Ok4eejjFYb7lvMw/CYuOBUKIS8JhEkuSn5wU4zsKV8E6uGhZl\r\nSR3GIH57q1v7dsMG1SvvuO1GnbRNgOt2CQcP/anb51FAWc/Bm+PrWKwN2xj7\r\nhT8bOLUgmLbNhGlfRyQhvjuEEDklp+7hRuT8dK50bDfWr0cZtWfG1bjLEi8o\r\nfLf5cIkcdVFYVd2RB6dBViG2GGI7uijWE93LrXEPg6Kx00E2LbwG3//7JKuU\r\nrDoYTMjoiNXuOX53zjeFNzlcs61s5r/hUmDIlxg59MUxhZZMvUpHJRWq0BZs\r\n7oQOLl0uwuZfW6YUbVGik/fBIg2WC2j9e3BYRUJ0BxIymcqpSFhdSCKq/MbR\r\n6qZSinYe4dIGaJsL47lfDZXIILZyaLJWSEAy4n9mLJAHg3S//SXfswuNJOnO\r\nQbvQLUf1R6pysG1OebN7Bap9/TZ0LlUEQWYEgbhUSRVBkFvdd4zfK4cRZZg6\r\nHFKxYaqFwZUKJt1uhqVCYiHzIAXkkc6wf0RHTZT72DnNiQD9ZI6mejKHHaRa\r\nrwkWT+E8jjU6pG43j6GAfRstAcrmMXufbU8=\r\n=ILfI\r\n-----END PGP SIGNATURE-----\r\n","size":3452,"noattachment":false,"key":"/strip-literal/-/strip-literal-0.4.2.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_0.4.2_1663487904912_0.8394241648402503"},"_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":1663487905080,"_cnpm_publish_time":1663487905080,"dist-tags":{"latest":"4.0.0"}}