{"_id":"@asukawang/amp","_rev":"11-fd322f2276f2cf8c4614b776f5e28fa6","name":"@asukawang/amp","dist-tags":{"latest":"0.3.3"},"versions":{"0.1.0":{"name":"@asukawang/amp","version":"0.1.0","author":{"name":"Asuka Wang"},"_id":"@asukawang/amp@0.1.0","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"b0357f17cc5962f344971dfbe5a4dd05fdd83d89","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.1.0.tgz","fileCount":4,"integrity":"sha512-egPbbE/mf8ug4OJ0XXxjc9OuPrQ9/5c7tDO0Q0Oo0HQqQ1A32U+IbrdJ1xGf8OBVWv/eOYJhDrfqALzwvYB85g==","signatures":[{"sig":"MEQCIFpbCGUuKXOcZr/At+BFCRWLXBbE4nluUM4gRz37D+2vAiBL77lDVIK+8AIjvr+Rr/IGM1WGNqBm4wMLLLZwU7vAgg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2014},"type":"module","module":"index.ts","gitHead":"8ba954d818936ab2b97bfc59d0fa033907093144","_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.1.0_1745914811544_0.880433115644097","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@asukawang/amp","version":"0.1.1","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.1.1","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"e91f0ffe0fce8d020cae190df001347bcdd40b19","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.1.1.tgz","fileCount":4,"integrity":"sha512-ATGW4R58tin+UC4dCYKOSeX0vKxQlIdQ2W8C0XhmPKSdd9kWUmDqVeaHULgWFZHp578FHkUOrb7xJ2EB/8LkTw==","signatures":[{"sig":"MEYCIQC1KArxW0xX5x7qOYNSPChUk5YULZBuSVDvRobflw+sZwIhAPpxg2+WZIGMU0+rIJvpDodINcbAxQ4Tq3AAIxOHZRJk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9384},"main":"dist/index.js","type":"module","module":"index.ts","gitHead":"e85ffbf390551c81af339818b21ff013d2d8092e","scripts":{"test":"bun test","build":"bun build ./index.ts --outdir ./dist --target node"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.19.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.1.1_1745915720946_0.8053493613255425","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@asukawang/amp","version":"0.1.2","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.1.2","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"adf0bfca4d53bf57efd2d2eb83172e4edd1979b8","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.1.2.tgz","fileCount":11,"integrity":"sha512-7/kjkSU0hs38Un1vGmSLKANHvvMIEBpdEOXvg3bTUGT5KPVXRInvooiylAABJDw6rLEk2zUWkvojtK6tjkJVNw==","signatures":[{"sig":"MEQCIC6Mg1m+eKsqGSldU3K5RLXq1dJwUranW59RZmnfydOcAiAlu6Q+JMnrOEAUgu7KJmwA8VjZxQh8PEdr+u4Qq1PLyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42568},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"c01115f2a638251b98117856f9fa64628d4d9cee","scripts":{"test":"bun test","build":"rm -rf dist && tsc --project tsconfig.publish.json && bun build ./index.ts --outdir ./dist --target node"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.19.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.1.2_1745977439390_0.1500064453308103","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@asukawang/amp","version":"0.2.0","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.2.0","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"289b9df36f0b11bc7e39352c04a60d422ddb06cf","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.2.0.tgz","fileCount":8,"integrity":"sha512-wya7ouJ+eS3+pmMVLGzX04+pCkJLH6Rg+z2n/GSVwjijIFhz9xzN0EzlrvCzYhUtTF9+h9eb4UzuKOl7/f+APA==","signatures":[{"sig":"MEYCIQDK416m++/u9I5OaflEpNHs0crqWwCec8Uaof4SyrAXdgIhAKAr2IQsHWvdmD7k0hqXNLXoAJDrUTBFeVzwOmMNM9jF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43514},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"d009ebdb47adddec867798ac82c762775f8e5ba7","scripts":{"test":"bun test","build":"rm -rf dist && tsc --project tsconfig.publish.json && bun build ./index.ts --outdir ./dist --target node"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.19.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.2.0_1745980926720_0.9134400464362649","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@asukawang/amp","version":"0.2.1","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.2.1","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"b4f200179cbc5cf74afbfa0c3a7abdbbee5f87cc","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.2.1.tgz","fileCount":8,"integrity":"sha512-gAmYG7f2jPRMkYMdtJsrtCi0n0SvlW5FvvN3z2QVuMNuRb/5j8VsBa40moljl433Jz1O7b9oYXYsQ/wy1bX2fA==","signatures":[{"sig":"MEUCIBvQNHOuAQtLVCtaXQnU0Mh7FDPr6WWXYAF36Ydc2Qp2AiEApirRMpMtMs3YBA0vdUY/B2VLvFVGd01dG/z9RHrM6Os=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43554},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"35ce679ab1d69b277a8da50a80e2e704e7b06902","scripts":{"test":"bun test","build":"rm -rf dist && tsc --project tsconfig.publish.json && bun build ./index.ts --outdir ./dist --target node"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.2.1_1746016748630_0.09324351854670265","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@asukawang/amp","version":"0.2.2","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.2.2","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"17ab712e608bd3c67ac30e8a0f4cf220406413b6","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.2.2.tgz","fileCount":8,"integrity":"sha512-izkrwR0JmDmDI22O0zSIhxBlzdgy5e0ZP6DEMzgCB4Ivwn95lzjwPJUI6cUjJ3bYgPVv2KveqNKCjlZVKS7CEg==","signatures":[{"sig":"MEYCIQCUxfPmuIjKQNvpGFzhiolGFTs19fubZ1h4itybOqJpUwIhANYIjLTIbri6nk28MwH3XOTOf4p0W/1c9r/MrziNPcO4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46179},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"5bbcc63b980bf0ff4c3c0fac7670e559241efc81","scripts":{"test":"bun test","build":"rm -rf dist && tsc --project tsconfig.publish.json && bun build ./index.ts --outdir ./dist --target node"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.18.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.2.2_1746370787415_0.683580322984567","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@asukawang/amp","version":"0.2.3","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.2.3","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"dc53ff26f7475a0d631478b8f7e67af0c244078a","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.2.3.tgz","fileCount":7,"integrity":"sha512-9ypnNqlJpCEDA2x2X/h30MRBTFPjT84166Fe+U0xNU7m3fjXccFXjSkKM6I3l9GJMEDhEDrK3FyHx6dr86E+iA==","signatures":[{"sig":"MEUCICq9h6y8FVD3LKPclXxsenntGaxP/4fXL91uYJ+qVWwCAiEAnU09ho9Lq6eRtR0QPcLn32Ae4N5F9GZlXvGnufPTkGc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10105},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"46828ba322101a5ed675c0e5b4ca4332500bfd62","scripts":{"test":"bun test","build":"bun run build.ts"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.19.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.2.3_1746526526957_0.3898880523804622","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@asukawang/amp","version":"0.3.0","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.3.0","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"feaa37538025dcebb887c2bb9a104d3deb374b04","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.3.0.tgz","fileCount":7,"integrity":"sha512-F2yLtAR2QFQolLPYhdBkDlxYdhk3Xr3QUBM7sk5+128t9nQWZXFp5yZ8LAT8d6fgDgAK+6lCqh3Av8vM/+vo2g==","signatures":[{"sig":"MEYCIQCN2eyS/avJDBEmmnPfT1cJ47KZr2hiABWONuy2g6iWTAIhAJwtvg0feyuhBi4oXWwu6PIoLr2PdNiQppGDivCoVmfx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10396},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"3d4bdf190958559dfb697975ce315d81320789b8","scripts":{"test":"bun test","build":"bun run build.ts"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.3.0_1759844137372_0.5170326462053316","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@asukawang/amp","version":"0.3.1","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.3.1","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"49ed66d0b7329bceae369ed53a75fa1ef68d3e7a","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.3.1.tgz","fileCount":7,"integrity":"sha512-pTBRObRVu3qH/N98KMrcGEOhZoEombVCo3AiIzBNesTwNr9goxO3NG3TD4XNrU8iQtBQisK4End6z6x53BVYmA==","signatures":[{"sig":"MEQCICoYiFNZTQw6LAhphNwl2sbknv91lKy02AYFk+L7RlqzAiAYbHQa6hpSk31Y3ZZ/S5SwbKMzuGWNSKfS56OPsIiFHQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12403},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"97c74eb183cc73cd24b29a8a5a143c7b8b640a2a","scripts":{"test":"bun test","build":"bun run build.ts"},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.8.2","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"20.19.5","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","vitest":"^3.2.4","prettier":"^3.5.3","@types/bun":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.3.1_1759937981790_0.022903069719621083","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@asukawang/amp","version":"0.3.2","keywords":["markdown","parser","typescript","bun"],"author":{"name":"Asuka Wang"},"license":"MIT","_id":"@asukawang/amp@0.3.2","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"homepage":"https://github.com/AsukaCHikaru/amp#readme","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"dist":{"shasum":"718ab219241feb9833f71c4c128c573a9a42dfd3","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.3.2.tgz","fileCount":7,"integrity":"sha512-BAHYNZok0LIYOfnlxUfA9WTWB76lrJNEPczC9zF+UsHXl6xUOXNGC09DI7UmztZRxNBbHCmjNzbEctu2kOhk4w==","signatures":[{"sig":"MEUCIQDP+WcPS7Ba+477Cjkl58pOkrlV+psamh+NFPbiFIUm7QIgRm771oEJWJw4uobE9rW1QW6fjDhguC850DwNXYCBOHM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12607},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"gitHead":"48c291ab4c3ca3c02bda13649a86b9abe0237d1f","scripts":{"lint":"eslint","test":"bun test","build":"bun run build.ts","format:check":"prettier -c ."},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"repository":{"url":"git+https://github.com/AsukaCHikaru/amp.git","type":"git"},"_npmVersion":"10.9.3","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.22.0","vitest":"^3.2.4","prettier":"^3.5.3","@eslint/js":"^9.22.0","@types/bun":"latest","typescript-eslint":"^8.54.0"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/amp_0.3.2_1770532900350_0.9685172159279096","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@asukawang/amp","version":"0.3.3","main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":"./dist/index.js"},"scripts":{"build":"bun run build.ts","test":"bun test","format:check":"prettier -c .","lint":"eslint"},"keywords":["markdown","parser","typescript","bun"],"devDependencies":{"@eslint/js":"^9.22.0","@types/bun":"latest","eslint":"^9.22.0","prettier":"^3.5.3","typescript-eslint":"^8.54.0","vitest":"^3.2.4"},"author":{"name":"Asuka Wang"},"repository":{"type":"git","url":"git+https://github.com/AsukaCHikaru/amp.git"},"license":"MIT","peerDependencies":{"typescript":"^5.0.0"},"_id":"@asukawang/amp@0.3.3","gitHead":"2a234243223746a4297122c06b20d9a8a949431b","description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"homepage":"https://github.com/AsukaCHikaru/amp#readme","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-3e4rU2Orusp6duPr5xik7HCEY0+PAakksvCLHSeph4OKEwkp6vGPTSVd9eQA5fsjpnFVqsNLw+GAmuQAAw5ZAw==","shasum":"6d75bcb986818cfce689edc3be557f39670d96aa","tarball":"https://registry.npmjs.org/@asukawang/amp/-/amp-0.3.3.tgz","fileCount":7,"unpackedSize":14376,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCerqrT06MC8wn3BoFFBIjvN8bozlb9PlQ9PpaGjkLYhgIgRjFlRN/MxBt2jj5Kla1fVOjUPUZc5BwIm4Tcg4r/Fdw="}]},"_npmUser":{"name":"asukawang","email":"asuka@asukawang.com"},"directories":{},"maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/amp_0.3.3_1788486909816_0.28513143298615473"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-29T08:20:11.461Z","modified":"2026-09-04T01:55:10.106Z","0.1.0":"2025-04-29T08:20:11.744Z","0.1.1":"2025-04-29T08:35:21.118Z","0.1.2":"2025-04-30T01:43:59.576Z","0.2.0":"2025-04-30T02:42:06.946Z","0.2.1":"2025-04-30T12:39:08.794Z","0.2.2":"2025-05-04T14:59:47.640Z","0.2.3":"2025-05-06T10:15:27.124Z","0.3.0":"2025-10-07T13:35:37.550Z","0.3.1":"2025-10-08T15:39:41.973Z","0.3.2":"2026-02-08T06:41:40.498Z","0.3.3":"2026-09-04T01:55:09.949Z"},"bugs":{"url":"https://github.com/AsukaCHikaru/amp/issues"},"author":{"name":"Asuka Wang"},"license":"MIT","homepage":"https://github.com/AsukaCHikaru/amp#readme","keywords":["markdown","parser","typescript","bun"],"repository":{"type":"git","url":"git+https://github.com/AsukaCHikaru/amp.git"},"description":"AMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.","maintainers":[{"name":"asukawang","email":"asuka@asukawang.com"}],"readme":"# AMP\n\nAMP (stands for \"Asuka's Markdown Parser\") is a minimum markdown parser, written in TypeScript.\n\n## Installation\n\n```bash\n# Using npm\nnpm install @asukawang/amp\n\n# Using yarn\nyarn add @asukawang/amp\n\n# Using bun\nbun add @asukawang/amp\n```\n\n## Usage\n\n### Basic Usage\n\n```typescript\nimport { Amp } from '@asukawang/amp';\n\n// Create a new parser instance\nconst amp = new Amp();\n\n// Parse markdown text into structured blocks\nconst markdownText = `\n---\ntitle: Hello world\n---\n\n# Heading 1\n`;\n\nconst { frontmatter, blocks } = amp.parse(markdownText);\nconsole.log(frontmatter); // { title: \"Hello world\" }\nconsole.log(blocks); // [{ type: \"heading\", level: 1, body: [{ type: \"textBody\", style: \"plain\", value: \"Heading 1\" }] }]\n```\n\n### Extending with Custom Blocks\n\nYou can extend the parser with custom block types:\n\n```typescript\nimport { Amp } from '@asukawang/amp';\nimport type { CustomBlock } from '@asukawang/amp';\n\n// Define a custom block type\ntype StrikeThroughBlock = CustomBlock<'strikeThrough', { body: string }>;\n\nconst strikeThroughRegexp = new RegExp(/^~~(.+?)~~/);\nconst strikeThroughParser = (input: string): StrikeThroughBlock => {\n  const match = input.match(strikeThroughRegexp);\n  if (!match) {\n    throw new Error('No match');\n  }\n  return {\n    type: 'custom',\n    customType: 'strikeThrough',\n    body: match[1],\n  };\n};\n\n// Extend the parser with the custom block\nconst amp = new Amp().extend([strikeThroughRegexp, strikeThroughParser]);\n\n// Extract the extended block type\ntype ExtendedBlock = ReturnType<typeof amp.parse>['blocks'][number];\n// ExtendedBlock = StrikeThroughBlock | HeadingBlock | ParagraphBlock | ...\n\n// Now you can parse custom blocks alongside built-in blocks\nconst text = '~~This text is strikethrough~~';\nconst { blocks } = amp.parse(text);\nconsole.log(blocks); // [{ type: \"custom\", customType: \"strikeThrough\", body: \"This text is strikethrough\" }]\n\n// You can chain multiple extend() calls\nconst ampWithMultipleExtensions = new Amp()\n  .extend([strikeThroughRegexp, strikeThroughParser])\n  .extend([anotherRegexp, anotherParser]);\ntype MultipleExtendedBlock = ReturnType<typeof amp.parse>['blocks'][number];\n// MultipleExtendedBlock = StrikeThroughBlock | AnotherBlock | HeadingBlock | ParagraphBlock | ...\n```\n\n## Built-in Block Types\n\n### Paragraph\n\n```ts\n// Some text with **strong**, a [link](https://example.com) and a footnote[^1].\n{\n  type: 'paragraph';\n  body: InlineContent[];\n}\n\ntype InlineContent = TextBody | Link | FootnoteReference;\n```\n\n#### TextBody\n\n```ts\n{\n  type: 'textBody';\n  style: TextBodyStyle;\n  value: string;\n}\n```\n\n##### TextBodyStyle\n\n- strong (\\*\\*text\\*\\*)\n- italic (\\_text\\_, \\*text\\*)\n- code (\\`text\\`)\n\n#### Link\n\n```ts\n{\n  type: 'link';\n  body: TextBody[];\n  url: string;\n}\n```\n\n#### FootnoteReference\n\n```ts\n{\n  type: 'footnoteReference';\n  label: string;\n}\n```\n\n### Heading\n\n```ts\n// # Heading 1\n// ###### Heading 6\n{\n  type: 'heading';\n  body: TextBody[];\n  level: 1 | 2 | 3 | 4 | 5 | 6;\n}\n```\n\n### List\n\n```ts\n// - item one\n// - item two\n//\n// 1. item one\n// 2. item two\n{\n  type: 'list';\n  items: ListItem[];\n  ordered: boolean;\n}\n```\n\nFor unordered list, only hyphen is supported (asterisks unsupported.)\n\n#### ListItem\n\n```ts\n{\n  type: 'listItem';\n  body: (TextBody | Link)[];\n}\n```\n\n### Quote\n\n```ts\n// > quoted text\n// > more quoted text\n{\n  type: 'quote';\n  body: (TextBody | Link)[];\n}\n```\n\n### Image\n\n```ts\n// ![alt text](image url)(caption)\n{\n  type: 'image';\n  url: string;\n  altText: string;\n  caption: string;\n}\n```\n\n### Code\n\n````ts\n// ```js\n// const foo = 'bar';\n// ```\n{\n  type: 'code';\n  lang?: string;\n  body: string;\n}\n````\n\n### Thematic break\n\n```ts\n// ---\n{\n  type: 'thematicBreak';\n}\n```\n\n### Footnote\n\n```ts\n// [^1]: footnote text\n// [^2]: another footnote\n{\n  type: 'footnote';\n  items: FootnoteItem[];\n}\n```\n#### FootnoteItem\n```ts\n{\n  type: 'footnoteItem';\n  label: string;\n  body: InlineContent[];\n}\n```\n\n# License\n\nMIT\n","readmeFilename":"README.md"}