{"name":"js-tokens","version":"9.0.1","author":{"name":"Simon Lydell"},"license":"MIT","description":"Tiny JavaScript tokenizer.","repository":{"type":"git","url":"git+https://github.com/lydell/js-tokens.git"},"type":"commonjs","exports":"./index.js","keywords":["JavaScript","js","ECMAScript","es","token","tokens","tokenize","tokenizer","regex","regexp"],"_id":"js-tokens@9.0.1","gitHead":"1470e1efafcbca46709c73ba98811a4e5bcc1e86","types":"./index.d.ts","bugs":{"url":"https://github.com/lydell/js-tokens/issues"},"homepage":"https://github.com/lydell/js-tokens#readme","_nodeVersion":"22.8.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==","shasum":"2ec43964658435296f6761b34e10671c2d9527f4","tarball":"http://registry-npm.ywwl.com/js-tokens/download/js-tokens-9.0.1.tgz","fileCount":5,"unpackedSize":16071,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiutdhKJOBegogqXY0gJHJhbWWJD2VivlwmXFySIbAuAIgQucbgpQChfOgrAheSfyZHTCAZvKjvKIWb9ZPVKpZNS0="}],"size":4432,"noattachment":false,"key":"/js-tokens/-/js-tokens-9.0.1.tgz"},"_npmUser":{"name":"lydell","email":"simon.lydell@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-tokens_9.0.1_1732296070291_0.6281904360708463"},"_hasShrinkwrap":false,"readme":"# js-tokens\n\nThe tiny, regex powered, lenient, _almost_ spec-compliant JavaScript tokenizer that never fails.\n\n```js\nconst jsTokens = require(\"js-tokens\");\n\nconst jsString = 'JSON.stringify({k:3.14**2}, null /*replacer*/, \"\\\\t\")';\n\nArray.from(jsTokens(jsString), (token) => token.value).join(\"|\");\n// JSON|.|stringify|(|{|k|:|3.14|**|2|}|,| |null| |/*replacer*/|,| |\"\\t\"|)\n```\n\n**[➡️ Full readme](https://github.com/lydell/js-tokens/)**","publish_time":1732296070496,"maintainers":[{"name":"lydell","email":"simon.lydell@gmail.com"}],"_cnpm_publish_time":1732296070496,"dist-tags":{"latest":"10.0.0"}}