{"name":"strip-literal","type":"module","version":"0.1.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.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"typesVersions":{"*":{"*":["./dist/*","./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":"0ba11724358ba5f2d3942da423ca40087cd6f1cc","_id":"strip-literal@0.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.8.0","dist":{"integrity":"sha512-wtnZGHZWgmuiHW4FXWX/t6bOkmu8+KcuE6FH92v0S2o3/RIZAcw6/6ZDutaJ4/mTfEZg3FLxDiOeonbGsYn0Zg==","shasum":"c76105740213c9034de3098060c261aa903f8da4","tarball":"http://registry-npm.ywwl.com/strip-literal/download/strip-literal-0.1.0.tgz","fileCount":6,"unpackedSize":5276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsU3FBIj5vaYpux/swvTw9htHba8WaBtXy4T2ienFObwIgCyyzMgMVk31OhcF6MqtxYwX/FCUPUAcGFTcAbch4ong="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJidd0sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7cQ//e75IEhjMhTDWJhi2GE8qOmJ6JeqI389fOaFVvRuqlWHD1eEW\r\nchQqG2ZhFWsBwMhPubDWdlaaeT3+MEEtcvZ5YEO8mwlujcb0adxhhp5JgBqU\r\nhyFaj6Ni2QoAVbLYRer/IXps56BGLDN6o0CMlO4Ki25xOYXPa0wpzBuNpaH6\r\nLSwh14GV6pi4c4w9K0TsGPodDzLVqIvjB/VMfX4FiTgctKZznIK12U67kghS\r\nZv7gUbXH2OjGLvTRcXm/Nl8nMzAm7IRA9AUhfGODHbKSoUJcOQVDmsOFylan\r\njwjahWMnsCZ32MmKyZVlFbltCOVL7yO/WPQ9C+V9sOCoTj2BFXZVENdkal5r\r\nF/vVsdQpsRALERkdwNarKmtYuQzAAeeHIAoZiW19DbljJWWrfCH6W9L3NNkl\r\nBExiDwS+faHJHunbYFw2s4OzHh2L2XQyrq2jka5kNFJC+JUwoQWsill+WvbY\r\nxrwixEsXF1H26s73PSDaxaSY97btrliEcrQB1O0fpM6bZzY3wdPJCqI5MVX3\r\njjIR5bOGUF2TO/caTgM1MZh1I5LaqlcA9U7YlfU6dU3LV+eWY/HoycciNNM7\r\nz8WAR8pYtHNhsQUyhJAp5Qo6oH6RpMvVRqHSU5yUxg4NrsAwGKQ9m+AnpWNC\r\ncWV0mK1LNdu8cceyWzTM5pBniUVVmHMJQlk=\r\n=7vlM\r\n-----END PGP SIGNATURE-----\r\n","size":2324,"noattachment":false,"key":"/strip-literal/-/strip-literal-0.1.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.1.0_1651891500303_0.5797335055984549"},"_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":1651891500542,"_cnpm_publish_time":1651891500542,"dist-tags":{"latest":"4.0.0"}}