{"name":"strip-literal","version":"0.3.0","packageManager":"pnpm@7.0.0","description":"Strip comments and string literals from JavaScript code","keywords":[],"homepage":"https://github.com/antfu/strip-literal#readme","bugs":{"url":"https://github.com/antfu/strip-literal/issues"},"license":"MIT","author":{"name":"Anthony Fu","email":"anthonyfu117@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/antfu/strip-literal.git"},"funding":"https://github.com/sponsors/antfu","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"sideEffects":false,"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","typecheck":"tsc --noEmit"},"dependencies":{"acorn":"^8.7.1"},"devDependencies":{"@antfu/eslint-config":"^0.23.0","@antfu/ni":"^0.16.2","@types/node":"^17.0.31","bumpp":"^7.1.1","eslint":"^8.14.0","esmo":"^0.14.1","pnpm":"^7.0.0","rimraf":"^3.0.2","typescript":"^4.6.4","unbuild":"^0.7.4","vite":"^2.9.7","vitest":"^0.10.2"},"gitHead":"dd0754f06127f5d2d643dffa409d7f493eedf1fb","_id":"strip-literal@0.3.0","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"integrity":"sha512-J+lfm3Pw5nzURj2B8acyvUSBqs3JbjM8WAfrmeH3qcn32+ew6kFwbZFV9+X8k9UOIAkQw9WPSzFZy3083c7l5Q==","shasum":"922502f1befeb08f2f79025d1be713e252ba3bd6","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-0.3.0.tgz","fileCount":6,"unpackedSize":5799,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGKYrGfG3zsb4xy0jCz+mxoD5EhqGwS1FbLPm/9ybLzAIgdYaD72OQ+GNO6lf5MMw+npxpvz/0+zkwXg7c30bjf9U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidffGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpr5w//UenciD7QFE4gKyzsgIuP0veHyX1lQP/OskZ4GGeGTyiWQ/ex\r\nr8W3LEUd39AjyKR/wjgxFeQ4vQdcC+GNokpWTwZtlILhFYRfT5R5KVyyqo43\r\nnfeZMwygTIp0yCRLqGCbnIMGBgsul2IxLWCSR5Xo6CoL7teDtuf8Ga0TWemd\r\n1xeGMIY/PNVsKPXzf+trIw1scZcZCe3XXGntyERnSv4ouBkf1xn50qNpgkXr\r\nIBz34IMBz7g9PwRK4CA/f9xViBTOBrRZ+oaox5r4L6b87QkXgGXIAYwDccON\r\n6lmOgsto/z5Sfm16wAyvMukjYXDdy1bw7KyfJ3XUkNwwg72/FUUFKAp4TvOJ\r\nSIKspWuRmoVfxi9BPSoWEGJJFC9XZORarGSIDXM1rh1LZbcsykLyq/wQv/qP\r\n5AFhg/QFpUsTI/0MmX47Inmpg24E08Fhb0zR2sKbiU/NIQlKNRRxEtBjAeRt\r\nU9N/861OytUCXj9RCRHJUBgl8lOmKgXYi7k63WxUTdATXPB1+jjQbX1JAzXb\r\nG73fMFL8AMAdS3BTexVhSRYnAR3PjWC64uzx/LbVUbb+m35vP8AOErQygtke\r\nfun9Z+ENJMEcp9c43tWy3hlleqPOF8RpjeUX7zNSRldpUomYqxPr4RQ173vt\r\ncj9jlB80G2JCGsvYneNirJFtlk6C4D26zOg=\r\n=clrE\r\n-----END PGP SIGNATURE-----\r\n","size":2447,"noattachment":false,"key":"/strip-literal/-/strip-literal-0.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_0.3.0_1651898309956_0.29153967997140273"},"_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":1651898310103,"_cnpm_publish_time":1651898310103,"dist-tags":{"latest":"4.0.0"}}