{"_id":"@xcrap/parser","_rev":"31-455b25e386898573f40c4f3ef5f569ea","name":"@xcrap/parser","dist-tags":{"beta":"0.0.2-beta.1","latest":"0.2.4"},"versions":{"0.0.1":{"name":"@xcrap/parser","version":"0.0.1","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.0.1","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"357b2edfc0ace62675194b45d1c1e2f408b2d97b","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.0.1.tgz","fileCount":24,"integrity":"sha512-EiJyk5mt7eVKfZcJ94B7b/iEfHbby2MMv8OfgMF3xhArynjIcKT50lJ9QcubaKCA6JL+Y3Wopcklr0fGa/n27Q==","signatures":[{"sig":"MEQCIDrMVCA/SPsnYZPZTzS+yMItJ7wn/onzHs8/DYnZHWZgAiBKtWjoI65+QsDB0hyabrsaQn9DTgvC30U0e07v+zyHNA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38143},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","gitHead":"08cce42e770aea02d7cb61de706f478f527aad3e","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"peerDependencies":{"jmespath":"^0.16.0","node-html-parser":"^7.0.1"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.0.1_1743055157113_0.6821733481190777","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.2":{"name":"@xcrap/parser","version":"0.0.2","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.0.2","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"854b65748d263c43fdbf0922858080ea816e35b4","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.0.2.tgz","fileCount":24,"integrity":"sha512-yCVuQvY48MUKqBduGUvMqBXl1rWc0Rx5L/XFLnyubzX9EjHg336jhqNeldnfFPf1nwb1y3yygP4iNgTMklT3TA==","signatures":[{"sig":"MEUCIQC814i6MgQQkrsQLMRPJ/ZEotyRKtbf4v02NTvGQtmiHwIgXF4aHxdA15HBrcXHwSsy0kdV/ZWzAfFStrUN0W4SnBs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37784},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","gitHead":"142a682fb6d872eff0cd5a701afc86acd6846a72","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"peerDependencies":{"jmespath":"^0.16.0","node-html-parser":"^7.0.1"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.0.2_1743056451275_0.4356656388087432","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.2-beta.1":{"name":"@xcrap/parser","version":"0.0.2-beta.1","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.0.2-beta.1","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"d56cf219183225e33fa2dc07839f1a172de9c083","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.0.2-beta.1.tgz","fileCount":46,"integrity":"sha512-fUWafpnJziNAEgCSsrxBwH8Vrsyzvlgq0sLioAkSrRPA8jbxGokol1RU3M2uHJoenRXiJqQZfuaYQDf1EWzA2A==","signatures":[{"sig":"MEYCIQDTioxbQ7j/bnuokrGwqUf4KqbZluSTgSiWSwPH2x84BAIhANSnuX2YfkyuUndzygHO0YI4/YPU8UFqheHR+Gd3rHDK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69674},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","gitHead":"142a682fb6d872eff0cd5a701afc86acd6846a72","scripts":{"test":"jest","build":"rollup -c"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"jmespath":"^0.16.0","node-html-parser":"^7.0.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29.7.0","tslib":"^2.8.1","rollup":"^4.37.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.0.2-beta.1_1743130496259_0.11391272399799979","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.3":{"name":"@xcrap/parser","version":"0.0.3","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.0.3","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"0e17c04631a9d35131212e180903b2aad7777bc4","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.0.3.tgz","fileCount":46,"integrity":"sha512-cFAtnBRrat9DXeFGumGPUteoq3VbmybU7t+rUziLGRwUsmTzCcuTn4rPRi4nOt5chnAzj2MUonPQTzjy4glp0A==","signatures":[{"sig":"MEYCIQDV8sapYvG+b0qlHbR7xHEF9vUuO2ipxXg82WD+qPetLgIhALgHUuOTE2Hw5wLYMIDndy7DNwqe2yI6zFuezoJn8JWL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69641},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","gitHead":"8fa645b713b7ca42b2ddd2e28a8ef49a09caf554","scripts":{"test":"jest","build":"rollup -c"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"jmespath":"^0.16.0","node-html-parser":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","tslib":"^2.8.1","rollup":"^4.37.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2","@rollup/plugin-commonjs":"^28.0.3","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.0.3_1743396825411_0.17347692943306559","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.4":{"name":"@xcrap/parser","version":"0.0.4","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.0.4","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"fade838be9f4d65933969e467f2345484f2c8bde","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.0.4.tgz","fileCount":25,"integrity":"sha512-QmpvNXQIcuFAYZ8T2FkDJwbo54Q9hwMwkTQlkX0wcmHZjtWjn9vKQADvJnD7PtWWaaWKv043nzUjJkYIfnwteA==","signatures":[{"sig":"MEQCIH59McE4pvjM9lbp/5RmuMFM5uqJd7OSA6/02RT4eQ9bAiBk6MfipkGleDaH8fj3zOzCED32FZE3YBDdNxUW5BZXeQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35834},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"70602d055399a46ddb47e683850b1758d6b5ac35","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"jmespath":"^0.16.0","node-html-parser":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.0.4_1744139305907_0.7940714718702553","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.5":{"name":"@xcrap/parser","version":"0.0.5","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.0.5","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"cb01953c72bf1728851197483720242f826171b0","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.0.5.tgz","fileCount":25,"integrity":"sha512-/wx7I00sQBEgbr1G1RfOucHbFJItd+Yo4zv7PAlps/bvRCUpcKSEtXZNQwZL49AHegRl6TsnKXjkPuXXftZSwQ==","signatures":[{"sig":"MEUCIQDNIW6qtoxIhsOZPZuFkouQ8kc24fqLJ3q/YKBfAvgXuAIgRTmcBzEmp/eGqUyjfjR75qJNiLLn4apW6Rf1HnIQHAo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37712},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"356ccd5da251bbbd1caf22a66336de569678cb55","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","actor":{"name":"marcuth","type":"user","email":"marcuth2006@gmail.com"},"email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"jmespath":"^0.16.0","node-html-parser":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.0.5_1750316864878_0.7056265932995893","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.0":{"name":"@xcrap/parser","version":"0.1.0","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.1.0","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"ef8bc1ed72d959214d1cd1e1923b639acf4a1925","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.1.0.tgz","fileCount":31,"integrity":"sha512-nRD3Wlwo/nifLLGr8HWQC9tZd7CeUwD4Gv9OUg1Z5FAAzOUNUkez4cmhHKFaZOefgpENadCOA4OVHzjfXRySkA==","signatures":[{"sig":"MEYCIQCNpwSvuvgMVoWKTeUjspmxEewm7O+7ye0y+tMXWh0LWwIhAPg2t0Nb8HA2KdH5Q1MazeQlhRygR/VIv9EQc72p4LjW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39858},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"e6d94607b5d92bce0a111c375d06d1328fca147f","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","actor":{"name":"marcuth","type":"user","email":"marcuth2006@gmail.com"},"email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"jmespath":"^0.16.0","micromark":"^4.0.2","node-html-parser":"^7.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.1.0_1750606282833_0.9200242664134111","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.2":{"name":"@xcrap/parser","version":"0.1.2","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.1.2","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"d7ada20926c5732b0af4e76a3d21f83657f44852","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.1.2.tgz","fileCount":33,"integrity":"sha512-lWQLeGP4XpaT51r3+4uH7QpknuCSHW/gOI2tSXnVff9KR0EmwTKTbasA+LNdvTJNrPhcFoA/1yAGPSIOi7JSIw==","signatures":[{"sig":"MEYCIQCkFevZFIYKpZT1HlbFTGK25IHh/BX4WsjSH/Lh+zWIkgIhAPdpr6t0qOiS5yb720RFm4fl3b7OgsvssOQg8ZvZL5Ex","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41843},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"8b19d161b3a0e71e876d5faa0626d9671b9467c4","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","actor":{"name":"marcuth","type":"user","email":"marcuth2006@gmail.com"},"email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/marked":"^5.0.2","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.1.2_1750625032978_0.30603971549825704","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.3":{"name":"@xcrap/parser","version":"0.1.3","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.1.3","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"5372b329bf3471b954fcf3b6cdd704b8ab84be56","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.1.3.tgz","fileCount":35,"integrity":"sha512-ATPI0Y9VEGKIqhHNiL3t/irv58Gh94DUiqbVpV0kbQHh+tlNj9HaxvBgbm8xXvwAdBFtnX8Wp++UuVzV/5goBQ==","signatures":[{"sig":"MEQCIE+uh63mnAA4Gw3H7fq7/ogA93VtLGxbbVvd8PQRpe9pAiAx7akyLHcpUfhiVp5A09UnNR37vK2qmQGpTcdFbdsT9g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40819},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"0542ba68d96ba7a8f5dc0d347e589bd52c7095d7","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","actor":{"name":"marcuth","type":"user","email":"marcuth2006@gmail.com"},"email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.1.3_1750625253137_0.6882222943834531","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.10":{"name":"@xcrap/parser","version":"0.1.10","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.1.10","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"f6ca2ea540d52da0da7c28594aa4d32efe6747ce","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.1.10.tgz","fileCount":35,"integrity":"sha512-8vx8JojgPeU/7c7ygJJq5IWMnxNacTBckBjyhdI9qQNULuh5JD/KWr6K7sntPevDSVFXirsYLaG9o4MZrijG2Q==","signatures":[{"sig":"MEUCIG4cYu6qgYoC0rWecqFjk0TFyHskYI/u/mYjS4sLAzHSAiEA6gvIcGXfvjnc478n2tWHxEWP5wdgg3GvGj1mSrz+tTU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42177},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"9fdf4d07b6c368728ca87d6e05877b4fec0e8a07","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","actor":{"name":"marcuth","type":"user","email":"marcuth2006@gmail.com"},"email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"he":"^1.2.0","jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","@types/he":"^1.2.3","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.1.10_1750653606608_0.5621823460647328","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.11":{"name":"@xcrap/parser","version":"0.1.11","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.1.11","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"4f6453c4eb4ed6ce4ed21a662ac7b86d51b5bcb4","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.1.11.tgz","fileCount":35,"integrity":"sha512-qP85ivgqofmm9Zwb7QyWCvzwfZ6PR+QzgGRfg2iFS0BMPF5Cc+f6YNKa9ecyxCxNMQ2BwquwQTQk7J4GEMnL3Q==","signatures":[{"sig":"MEUCIQDMwrRsw6dvO7e9fMxC/6+NWEXwgoPuNhRbj8TKpWq+fQIgEhXEvGDlrocI1qQlbnD0uJ2HOK42vZyX6A0GKT5D4JM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42225},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"fb43d2e5475ec0576ccaee35715af32e06855666","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","actor":{"name":"marcuth","type":"user","email":"marcuth2006@gmail.com"},"email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.2.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"he":"^1.2.0","jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","@types/he":"^1.2.3","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.1.11_1750654203557_0.6240094488042287","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.0":{"name":"@xcrap/parser","version":"0.2.0","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.2.0","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"b22d7e4159bd5d71c3724a1f068d87a8f46dc81d","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.2.0.tgz","fileCount":45,"integrity":"sha512-ckcgsAdhiEWbFvHft5Fy9GYL7jZlS1Sst5sS80xRga++wribvpQMRucNQpcDI8GMhWfMdPQL6B44XH/l040LYw==","signatures":[{"sig":"MEUCIQC7P+63dMl18Is5J6nNZP/hELo+d85oi/R05zN6F2wcOAIgRTuELndE+NTnsbkKOBGuG8caE0SBRQJFpYmYFBGnFD8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51255},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"d111b0fa2524801c2945fc741e60ebb392c0b248","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.8.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"he":"^1.2.0","xpath":"^0.0.34","xmldom":"^0.6.0","jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","@types/he":"^1.2.3","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/xmldom":"^0.1.34","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.2.0_1770706153975_0.6738430816131706","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.1":{"name":"@xcrap/parser","version":"0.2.1","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.2.1","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"44657eda7d9b635c2a3a6f1bfda7caaf1d73df99","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.2.1.tgz","fileCount":45,"integrity":"sha512-quEfvsOFYwukyQCSIshIHExp63RY83I5ouBFVXITp+3t5wWpk+3MExEzR0joeKoK3n9yebG2oMH5xTBJBp7EnQ==","signatures":[{"sig":"MEQCIAF/2IIjQS16cRyB0ma2U4CN0fsyy4CjpBOTGOlM5RY0AiB++oS6hDrQeVgYuPAyrbnDT2wLxC8H24QKrFpGO3wU1Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51277},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"6939ae4a21fb1de3b21f43045c20726c208d3c3f","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.8.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"he":"^1.2.0","xpath":"^0.0.34","xmldom":"^0.6.0","jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","@types/he":"^1.2.3","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/xmldom":"^0.1.34","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.2.1_1770707249915_0.04630850847775703","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.2":{"name":"@xcrap/parser","version":"0.2.2","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.2.2","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"2262325d7c3c678a9d5a339cb5d8e3da6aecfe84","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.2.2.tgz","fileCount":45,"integrity":"sha512-JyIEtt7yNtGtfJt8J5b9yd5ltgBNGgF28FoLIsVDBdzM9fTLz8hi0YPfb+Ts5yKUEN8jiub6Y3GV42QdS7tsTw==","signatures":[{"sig":"MEUCIFcZveEHaGo11+VcpRRp5zPvRA2BLgwPZC+p19KhlIbjAiEAqELYzzAnDt6BsKdJwRuF45y3w/P11XeI4x6B+SmckII=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51279},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"0420eed162ff98fcaba497e3d50bb0a3b6376364","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.8.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"he":"^1.2.0","xpath":"^0.0.34","xmldom":"^0.6.0","jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","@types/he":"^1.2.3","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/xmldom":"^0.1.34","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.2.2_1770745281208_0.799759202781074","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.3":{"name":"@xcrap/parser","version":"0.2.3","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.2.3","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"14eefc7735eb13fa353ad5a4356737d42ad15a3c","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.2.3.tgz","fileCount":45,"integrity":"sha512-4x1D0m5tUgtfelsSAFrZ/cLQj7gPjiF/LX+hsaOywuIap6LXoq/BwmvQ1+VfgKUN0K6TfH2k03r/KdAoFtI/wg==","signatures":[{"sig":"MEQCIFmpHoZtDrIgLPltejfb3hwgmuWdgPMtFHWC8eyDkruEAiB7VyaS2X1vFM9X6eYEQAoNMd3WImsv7EA19t1ALknegw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51507},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"646d0f2a497c832916cb649f41f4331869d7e66c","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.8.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"he":"^1.2.0","xpath":"^0.0.34","xmldom":"^0.6.0","jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","@types/he":"^1.2.3","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/xmldom":"^0.1.34","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.2.3_1770745480408_0.5385852306662593","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.4":{"name":"@xcrap/parser","version":"0.2.4","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"author":{"name":"Marcuth"},"license":"MIT","_id":"@xcrap/parser@0.2.4","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"homepage":"https://github.com/Xcrap-Cloud/parser#readme","bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"dist":{"shasum":"f7516ab845e0d1fd68a833e1ed9eb42e18e4e960","tarball":"https://registry.npmjs.org/@xcrap/parser/-/parser-0.2.4.tgz","fileCount":45,"integrity":"sha512-ANNrDklzurUQH7vYbz1+bJ6BtvLZm69VHJ0tPNH6eo7xwmAgGaOtBWfAmq4eUSxRwplREDOEfExHM057wZmWEA==","signatures":[{"sig":"MEQCIEL+w85zIyMd1QFD/Slj47pJ5WEwTM8Q6r0Mzjf7+aFbAiBqgpe4swUPI0Gd106dZm9hifEbCoqfmzx3Mxg8dKqjOQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51523},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.js","gitHead":"cc670b1b6ac16524453395c70a7e283865b618ae","scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"marcuth","email":"marcuth2006@gmail.com"},"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"_npmVersion":"11.8.0","description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","directories":{},"_nodeVersion":"24.13.0","dependencies":{"he":"^1.2.0","xpath":"^0.0.34","xmldom":"^0.6.0","jmespath":"^0.16.0","markdown-it":"^14.1.0","node-html-parser":"^7.0.1","markdown-it-anchor":"^9.2.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.3.0","ts-node":"^10.9.2","@types/he":"^1.2.3","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.13.14","@types/xmldom":"^0.1.34","@types/jmespath":"^0.15.2"},"_npmOperationalInternal":{"tmp":"tmp/parser_0.2.4_1770750802230_0.4657314459421107","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2025-03-27T05:59:17.047Z","modified":"2026-02-11T05:38:52.439Z","0.0.1":"2025-03-27T05:59:17.291Z","0.0.2":"2025-03-27T06:20:51.437Z","0.0.2-beta.1":"2025-03-28T02:54:56.514Z","0.0.3":"2025-03-31T04:53:45.653Z","0.0.4":"2025-04-08T19:08:26.169Z","0.0.5":"2025-06-19T07:07:45.193Z","0.1.0":"2025-06-22T15:31:23.059Z","0.1.1":"2025-06-22T19:46:50.857Z","0.1.2":"2025-06-22T20:43:53.167Z","0.1.3":"2025-06-22T20:47:33.320Z","0.1.4":"2025-06-23T00:38:43.360Z","0.1.5":"2025-06-23T00:52:02.927Z","0.1.6":"2025-06-23T00:54:57.652Z","0.1.7":"2025-06-23T04:15:01.016Z","0.1.8":"2025-06-23T04:20:47.632Z","0.1.9":"2025-06-23T04:37:28.776Z","0.1.10":"2025-06-23T04:40:06.801Z","0.1.11":"2025-06-23T04:50:03.728Z","0.2.0":"2026-02-10T06:49:14.127Z","0.2.1":"2026-02-10T07:07:30.060Z","0.2.2":"2026-02-10T17:41:21.366Z","0.2.3":"2026-02-10T17:44:40.561Z","0.2.4":"2026-02-10T19:13:22.387Z"},"bugs":{"url":"https://github.com/Xcrap-Cloud/parser/issues"},"author":{"name":"Marcuth"},"license":"MIT","homepage":"https://github.com/Xcrap-Cloud/parser#readme","keywords":["xcrap","parser","web scraping","node-html-parser","parsel","scrapy"],"repository":{"url":"git+https://github.com/Xcrap-Cloud/parser.git","type":"git"},"description":"Xcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML and JSON) using declarative models.","maintainers":[{"name":"marcuth","email":"marcuth2006@gmail.com"}],"readme":"# 🕷️ Xcrap Parser: Parsing HTML and JSON using declarative models\r\n\r\nXcrap Parser is a package of the Xcrap framework, it was developed to take care of the data extraction part of text files (currently supporting only HTML, JSON and Markdown) using declarative models.\r\n\r\n---\r\n\r\n## 📦 Installation\r\n\r\nInstalling it is very simple, you can use NPM or any other package manager of your choice: such as PNPM, Yarn, etc.\r\n\r\n```cmd\r\nnpm i @xcrap/parser\r\n```\r\n\r\n---\r\n\r\n## 🛠️ How to Use\r\n\r\nWell, there are a few ways to use this parsing mechanism, from using the already created templates to expanding it by creating parsers for other file types and keeping the interleaving of these templates.\r\n\r\n### Providing HTML string\r\n\r\n```ts\r\nimport { HtmlParser, extract } from \"@xcrap/parser\"\r\n\r\n;(async () => {\r\n    const html = \"<html><head><title>Page Title</title></head><body><><></body></html>\"\r\n    const parser = new HtmlParser(html)\r\n})();\r\n```\r\n\r\n### Loading an HTML file\r\n\r\n```ts\r\nimport { HtmlParser, extract } from \"@xcrap/parser\"\r\n\r\n;(async () => {\r\n    const parser = await HtmlParser.loadFile(\"./path-to-html-file.html\", { encoding: \"utf-8\" }) // Returns an instance of HtmlParser\r\n})();\r\n\r\n```\r\n\r\n### Data extraction without using models\r\n\r\n```ts\r\nimport { HtmlParser, extract, css } from \"@xcrap/parser\"\r\n\r\n;(async () => {\r\n    const html = `<html><head><title>Page Title</title></head><body><a href=\"https://example.com\">Link</a></body></html>`\r\n    const parser = new HtmlParser(html)\r\n\r\n    // parseFirst() searches and extracts something from the first element found\r\n    // extract(key: string, isAttribute?: boolean) is a generic extraction function, you can use some that are already created and ready to use by importing them from the same location :)\r\n    const title = await parser.parseFirst({ query: css(\"title\"), extractor: extract(\"innerText\") })\r\n\r\n    // parseMany() fetches all the elements it finds with a query (you can limit the number of results) and uses the extractor to grab the data\r\n    const links = await parser.parseMany({ query: css(\"a\"), extractor: extract(\"href\", true) })\r\n\r\n    console.log(title) // \"Page Title\"\r\n    console.log(links) // [\"https://example.com\"]\r\n})();\r\n```\r\n\r\n### Data extraction with using models\r\n\r\nParsingModels are decoupled enough that you don't have to rely on using Parser instances, but we'll still use them:\r\n\r\n```ts\r\nimport { HtmlParser, HtmlParsingModel, extract, css } from \"@xcrap/parser\"\r\n\r\n;(async () => {\r\n    const html = `<html><body><h1>Heading</h1><div><p id=\"id\">1</p><p id=\"name\">Name</p><p class=\"age\">23</p></div></body></html>`\r\n    const parser = new HtmlParser(html)\r\n\r\n    const rootParsingModel = new HtmlParsingModel({\r\n        heading: {\r\n            query: css(\"h1\"),\r\n            extractor: extract(\"innerText\")\r\n        },\r\n        id: {\r\n            // You can also use xpath() query builder\r\n            // query: xpath(\"//*[@id='id']\")\r\n            query: css(\"#id\"),\r\n            extractor: extract(\"innerText\")\r\n        },\r\n        name: {\r\n            query: css(\"#name\"),\r\n            extractor: extract(\"innerText\")\r\n        },\r\n        age: {\r\n            query: css(\".age\"),\r\n            extractor: extract(\"innerText\")\r\n        }\r\n    })\r\n\r\n    const data = await parser.extractFirst({ model: rootParsingModel })\r\n\r\n    console.log(data) // { heading: \"Heading\", id: \"1\", name: \"Name\", age: \"23\" }\r\n})();\r\n```\r\n\r\n## 🧠 Create your own Parser: Concepts\r\n\r\n### What is a Parser?\r\n\r\nA Parser for this library is a class that deals in some way with a file type, loads that file, and may or may not have some methods to easily extract data.\r\n\r\nA parser has a default method called `parseModel` which is a wrapper that takes a `ParsingModel` and calls the `parse()` method providing the internal `source` property.\r\n\r\n### What is a ParsingModel?\r\n\r\nA Parsing Model is a class that receives a `shape` in its constructor and stores it as a property. It must have a method called `parse()` that will receive a `source`, which is the code/text that contains the information to be extracted.\r\n\r\nThis `shape` is used to declare the form in which the information will be extracted from the `source`.\r\n\r\n## 🤝 Contributing\r\n\r\n- Want to contribute? Follow these steps:\r\n- Fork the repository.\r\n- Create a new branch (git checkout -b feature-new).\r\n- Commit your changes (git commit -m 'Add new feature').\r\n- Push to the branch (git push origin feature-new).\r\n- Open a Pull Request.\r\n\r\n## 📝 License\r\n\r\nThis project is licensed under the MIT License.","readmeFilename":"README.md"}