{"_id":"domparser-rs","_rev":"4444456","name":"domparser-rs","description":"A super fast html parser and manipulator written in rust.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"xusd320","email":""}],"time":{"modified":"2026-04-08T14:16:46.000Z","created":"2025-12-17T18:04:04.806Z","0.1.0":"2026-04-07T05:33:53.321Z","0.0.7":"2025-12-26T03:54:35.450Z","0.0.6":"2025-12-26T03:34:30.963Z","0.0.5":"2025-12-22T04:10:25.539Z","0.0.4":"2025-12-21T02:15:33.767Z","0.0.3":"2025-12-19T09:14:41.659Z","0.0.2":"2025-12-18T10:51:15.216Z","0.0.1":"2025-12-17T18:04:04.806Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser-rs.git"},"versions":{"0.1.0":{"name":"domparser-rs","version":"0.1.0","packageManager":"yarn@4.3.1","main":"domparser.js","types":"domparser.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser_napi --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser_napi --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm --skip-optional-publish --no-gh-release","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser-rs.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.1.0","domparser-linux-arm64-gnu":"0.1.0","domparser-linux-arm64-musl":"0.1.0","domparser-win32-arm64-msvc":"0.1.0","domparser-linux-x64-musl":"0.1.0","domparser-linux-x64-gnu":"0.1.0","domparser-win32-x64-msvc":"0.1.0","domparser-darwin-x64":"0.1.0"},"_id":"domparser-rs@0.1.0","gitHead":"1c5f7a1ac7a397c8cafce78c3b2375d6a2a84066","bugs":{"url":"https://github.com/utooland/domparser-rs/issues"},"homepage":"https://github.com/utooland/domparser-rs#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"shasum":"9cec74938acf4b96279f12e2e4574993103bf8e2","size":11935,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.1.0.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.1.0_1775540033162_0.764488045813299"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-07T05:33:53.321Z","publish_time":1775540033321,"_source_registry_name":"default","_cnpm_publish_time":1775540033321},"0.0.7":{"name":"domparser-rs","version":"0.0.7","packageManager":"yarn@4.3.1","main":"domparser.js","types":"domparser.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser_napi --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser_napi --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm","version":"napi version && node scripts/sync-version.js && cargo check && git add crates/domparser/Cargo.toml Cargo.lock","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser-rs.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.0.7","domparser-linux-arm64-gnu":"0.0.7","domparser-linux-arm64-musl":"0.0.7","domparser-win32-arm64-msvc":"0.0.7","domparser-linux-x64-musl":"0.0.7","domparser-linux-x64-gnu":"0.0.7","domparser-win32-x64-msvc":"0.0.7","domparser-darwin-x64":"0.0.7"},"_id":"domparser-rs@0.0.7","gitHead":"79e32cd0ae4902a907a91b9c079c3de1f152db95","bugs":{"url":"https://github.com/utooland/domparser-rs/issues"},"homepage":"https://github.com/utooland/domparser-rs#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"shasum":"fa62527b2740f4bf1864e7ea7cb76426403a403b","size":9464,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.0.7.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.0.7_1766721275253_0.8914015792979528"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-26T03:54:35.450Z","publish_time":1766721275450,"_source_registry_name":"default","_cnpm_publish_time":1766721275450},"0.0.6":{"name":"domparser-rs","version":"0.0.6","packageManager":"yarn@4.3.1","main":"domparser.js","types":"domparser.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser_napi --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser_napi --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm","version":"napi version && node scripts/sync-version.js && cargo check && git add crates/domparser/Cargo.toml Cargo.lock","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser-rs.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.0.6","domparser-linux-arm64-gnu":"0.0.6","domparser-linux-arm64-musl":"0.0.6","domparser-win32-arm64-msvc":"0.0.6","domparser-linux-x64-musl":"0.0.6","domparser-linux-x64-gnu":"0.0.6","domparser-win32-x64-msvc":"0.0.6","domparser-darwin-x64":"0.0.6"},"_id":"domparser-rs@0.0.6","gitHead":"525995b89465e179cad8247fa3cce90a24720fa3","bugs":{"url":"https://github.com/utooland/domparser-rs/issues"},"homepage":"https://github.com/utooland/domparser-rs#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"shasum":"2e4aa774eb17657ad8933e7c058b5f47ff6fb24e","size":9476,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.0.6.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.0.6_1766720070827_0.4510182962314446"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-26T03:34:30.963Z","publish_time":1766720070963,"_source_registry_name":"default","_cnpm_publish_time":1766720070963},"0.0.5":{"name":"domparser-rs","version":"0.0.5","packageManager":"yarn@4.3.1","main":"domparser.js","types":"domparser.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser_napi --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser_napi --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm","version":"napi version && node scripts/sync-version.js && cargo check && git add crates/domparser/Cargo.toml Cargo.lock","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser-rs.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.0.5","domparser-linux-arm64-gnu":"0.0.5","domparser-linux-arm64-musl":"0.0.5","domparser-win32-arm64-msvc":"0.0.5","domparser-linux-x64-musl":"0.0.5","domparser-linux-x64-gnu":"0.0.5","domparser-win32-x64-msvc":"0.0.5","domparser-darwin-x64":"0.0.5"},"_id":"domparser-rs@0.0.5","gitHead":"caca7d9f2e864abf6e70ce7fed24233e4358e15a","bugs":{"url":"https://github.com/utooland/domparser-rs/issues"},"homepage":"https://github.com/utooland/domparser-rs#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"shasum":"1abc9d17cb727359588b35742cdc93a89375072a","size":7680,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.0.5.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.0.5_1766376625406_0.7003591977415682"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-22T04:10:25.539Z","publish_time":1766376625539,"_source_registry_name":"default","_cnpm_publish_time":1766376625539},"0.0.4":{"name":"domparser-rs","version":"0.0.4","packageManager":"yarn@4.3.1","main":"domparser.js","types":"domparser.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin","universal-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser_napi --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser_napi --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm","universal":"napi universalize","version":"napi version && node scripts/sync-version.js && cargo check && git add crates/domparser/Cargo.toml Cargo.lock","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser-rs.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.0.4","domparser-linux-arm64-gnu":"0.0.4","domparser-linux-arm64-musl":"0.0.4","domparser-win32-arm64-msvc":"0.0.4","domparser-linux-x64-musl":"0.0.4","domparser-linux-x64-gnu":"0.0.4","domparser-win32-x64-msvc":"0.0.4","domparser-darwin-x64":"0.0.4","domparser-darwin-universal":"0.0.4"},"_id":"domparser-rs@0.0.4","gitHead":"29fe5282c94597a5f2c6f70eeec45fe8d3188eca","bugs":{"url":"https://github.com/utooland/domparser-rs/issues"},"homepage":"https://github.com/utooland/domparser-rs#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"shasum":"72f3370af783a98f8c45bf7cc5dbd067cca14c61","size":7699,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.0.4.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.0.4_1766283333626_0.4355888703288251"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-21T02:15:33.767Z","publish_time":1766283333767,"_source_registry_name":"default","_cnpm_publish_time":1766283333767},"0.0.3":{"name":"domparser-rs","version":"0.0.3","packageManager":"yarn@4.3.1","main":"domparser.js","types":"domparser.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin","universal-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm","universal":"napi universalize","version":"napi version","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser-rs.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.0.3","domparser-linux-arm64-gnu":"0.0.3","domparser-linux-arm64-musl":"0.0.3","domparser-win32-arm64-msvc":"0.0.3","domparser-linux-x64-musl":"0.0.3","domparser-linux-x64-gnu":"0.0.3","domparser-win32-x64-msvc":"0.0.3","domparser-darwin-x64":"0.0.3","domparser-darwin-universal":"0.0.3"},"_id":"domparser-rs@0.0.3","gitHead":"4cc15b074112d81e2abe79214a7e850a4fcff5b7","bugs":{"url":"https://github.com/utooland/domparser-rs/issues"},"homepage":"https://github.com/utooland/domparser-rs#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"shasum":"6f6ae826ad29cb1a5cff0fd004b254b854a0c788","size":7739,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.0.3.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.0.3_1766135681506_0.12112772397597515"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-19T09:14:41.659Z","publish_time":1766135681659,"_source_registry_name":"default","_cnpm_publish_time":1766135681659},"0.0.2":{"name":"domparser-rs","version":"0.0.2","packageManager":"yarn@4.3.1","main":"domparser.js","types":"index.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin","universal-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm","universal":"napi universalize","version":"napi version","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.0.2","domparser-linux-arm64-gnu":"0.0.2","domparser-linux-arm64-musl":"0.0.2","domparser-win32-arm64-msvc":"0.0.2","domparser-linux-x64-musl":"0.0.2","domparser-linux-x64-gnu":"0.0.2","domparser-win32-x64-msvc":"0.0.2","domparser-darwin-x64":"0.0.2","domparser-darwin-universal":"0.0.2"},"_id":"domparser-rs@0.0.2","gitHead":"d922305233d137827ba38e8e1e940f7f659000ad","bugs":{"url":"https://github.com/utooland/domparser/issues"},"homepage":"https://github.com/utooland/domparser#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"shasum":"bfe5ade0d528d851587607c24b1a8915d11000ec","size":7642,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.0.2.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.0.2_1766055075073_0.5878057954079865"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-18T10:51:15.216Z","publish_time":1766055075216,"_source_registry_name":"default","_cnpm_publish_time":1766055075216},"0.0.1":{"name":"domparser-rs","version":"0.0.1","packageManager":"yarn@4.3.1","main":"domparser.js","types":"index.d.ts","workspaces":["npm/*"],"napi":{"binaryName":"domparser","package":{"name":"domparser"},"targets":["aarch64-apple-darwin","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","x86_64-pc-windows-msvc","x86_64-apple-darwin","universal-apple-darwin"],"packageName":"domparser"},"keywords":["htmlparser","jquery","selector","scraper","parser","dom","html","rust","napi"],"license":"MIT","devDependencies":{"@napi-rs/cli":"^3.0.0","@taplo/cli":"^0.7.0","cheerio":"^1.1.2","htmlparser-benchmark":"^1.1.3","husky":"^8.0.0","js-beautify":"^1.15.1","typescript":"^5.5.3"},"engines":{"node":">= 10"},"scripts":{"artifacts":"napi artifacts","build":"napi build --platform --release --package domparser --js index.js","postbuild":"node scripts/postbuild.js","build:debug":"napi build --platform --package domparser --js index.js && node scripts/postbuild.js","prepublishOnly":"napi prepublish -t npm","universal":"napi universalize","version":"napi version","test":"node --test","benchmark":"node ./benchmark/benchmark.mjs","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/utooland/domparser.git"},"description":"A super fast html parser and manipulator written in rust.","optionalDependencies":{"domparser-darwin-arm64":"0.0.1","domparser-linux-arm64-gnu":"0.0.1","domparser-linux-arm64-musl":"0.0.1","domparser-win32-arm64-msvc":"0.0.1","domparser-linux-x64-musl":"0.0.1","domparser-linux-x64-gnu":"0.0.1","domparser-win32-x64-msvc":"0.0.1","domparser-darwin-x64":"0.0.1","domparser-darwin-universal":"0.0.1"},"_id":"domparser-rs@0.0.1","gitHead":"a0d5422d648f9fc2a086e97c9eea07872f2c42e7","bugs":{"url":"https://github.com/utooland/domparser/issues"},"homepage":"https://github.com/utooland/domparser#readme","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"shasum":"dea4b82d03d03603f87508ca2b68840f38bc716c","size":7841,"noattachment":false,"key":"/domparser-rs/-/domparser-rs-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/domparser-rs/download/domparser-rs-0.0.1.tgz"},"_npmUser":{"name":"xusd320","email":"xusd320@gmail.com"},"directories":{},"maintainers":[{"name":"xusd320","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/domparser-rs_0.0.1_1765994644660_0.3739384936951926"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-17T18:04:04.806Z","publish_time":1765994644806,"_source_registry_name":"default","_cnpm_publish_time":1765994644806}},"readme":"# domparser-rs\n\nA super fast Node.js addon for HTML parsing and manipulation, written in Rust. It provides a standard-compliant DOM API for Node.js, mirroring the browser's built-in `DOMParser`.\n\n## Features\n\n- **Standard Compliant**: Type definitions aligned to `lib.dom.d.ts` — uses `Node`, `Element`, `Document`, `Text`, `Comment`, and other standard DOM interfaces.\n- High-performance DOM parsing and manipulation\n- Exposes a simple JavaScript API via NAPI-RS\n- Designed for both server-side and CLI HTML processing\n- Written in Rust for speed and safety\n\n## Installation\n\n```bash\nyarn add domparser-rs\n# or\nnpm install domparser-rs\n```\n\n## Usage\n\n```js\nconst { DOMParser } = require('domparser-rs');\n\nconst parser = new DOMParser();\nconst doc = parser.parseFromString('<div id=\"foo\" class=\"bar\">hello <span>world</span></div>', 'text/html');\n\nconst div = doc.querySelector('div');\nconsole.log(div.getAttribute('id')); // \"foo\"\nconsole.log(div.textContent); // \"hello world\"\ndiv.setAttribute('title', 'my-title');\nconsole.log(div.outerHTML); // <div id=\"foo\" class=\"bar\" title=\"my-title\">hello <span>world</span></div>\n```\n\n## API Documentation\n\n### `DOMParser`\n\n```ts\nclass DOMParser {\n  parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n```\n\nParses a string using the specified MIME type (e.g., `\"text/html\"`) and returns a `Document`.\n\n---\n\n### `Document`\n\nExtends `Node`. Represents the entire HTML document.\n\n#### Properties\n\n| Property | Type | Description |\n|---|---|---|\n| `doctype` | `DocumentType \\| null` | The DTD associated with the document |\n| `documentElement` | `Element \\| null` | The root element (e.g., `<html>`) |\n| `head` | `Element \\| null` | The `<head>` element |\n| `body` | `Element \\| null` | The `<body>` element |\n| `title` | `string` | The document title |\n| `children` | `Element[]` | Child elements |\n| `childElementCount` | `number` | Number of child elements |\n| `firstElementChild` | `Element \\| null` | First child element |\n| `lastElementChild` | `Element \\| null` | Last child element |\n\n#### Factory Methods\n\n- `createElement(tagName: string): Element`\n- `createTextNode(data: string): Text`\n- `createComment(data: string): Comment`\n- `createDocumentFragment(): DocumentFragment`\n- `createProcessingInstruction(target: string, data: string): ProcessingInstruction`\n- `importNode<T extends Node>(node: T, deep?: boolean): T`\n- `adoptNode<T extends Node>(node: T): T`\n\n#### Query Methods\n\n- `getElementById(elementId: string): Element | null`\n- `getElementsByClassName(classNames: string): Element[]`\n- `getElementsByTagName(qualifiedName: string): Element[]`\n- `querySelector(selectors: string): Element | null`\n- `querySelectorAll(selectors: string): Element[]`\n- `append(...nodes: (Node | string)[]): void`\n- `prepend(...nodes: (Node | string)[]): void`\n\n---\n\n### `Element`\n\nExtends `Node`. Represents an HTML element.\n\n#### Properties\n\n| Property | Type | Description |\n|---|---|---|\n| `tagName` | `string` | The tag name |\n| `localName` | `string` | The local part of the qualified name |\n| `namespaceURI` | `string \\| null` | The namespace URI |\n| `prefix` | `string \\| null` | The namespace prefix |\n| `id` | `string` | The `id` attribute |\n| `className` | `string` | The `class` attribute |\n| `classList` | `DOMTokenList` | Live token list of class names |\n| `dataset` | `Record<string, string>` | Data attributes |\n| `innerHTML` | `string` | Inner HTML content |\n| `outerHTML` | `string` | Outer HTML content |\n| `children` | `Element[]` | Child elements |\n| `childElementCount` | `number` | Number of child elements |\n| `firstElementChild` | `Element \\| null` | First child element |\n| `lastElementChild` | `Element \\| null` | Last child element |\n| `previousElementSibling` | `Element \\| null` | Previous sibling element |\n| `nextElementSibling` | `Element \\| null` | Next sibling element |\n\n#### Attribute Methods\n\n- `getAttribute(qualifiedName: string): string | null`\n- `setAttribute(qualifiedName: string, value: string): void`\n- `removeAttribute(qualifiedName: string): void`\n- `toggleAttribute(qualifiedName: string, force?: boolean): boolean`\n- `hasAttribute(qualifiedName: string): boolean`\n- `hasAttributes(): boolean`\n- `getAttributeNames(): string[]`\n- `getAttributeNS(namespace: string | null, localName: string): string | null`\n- `setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void`\n- `removeAttributeNS(namespace: string | null, localName: string): void`\n- `hasAttributeNS(namespace: string | null, localName: string): boolean`\n\n#### Query & Selection Methods\n\n- `querySelector(selectors: string): Element | null`\n- `querySelectorAll(selectors: string): Element[]`\n- `getElementById(id: string): Element | null`\n- `getElementsByClassName(classNames: string): Element[]`\n- `getElementsByTagName(qualifiedName: string): Element[]`\n- `closest(selectors: string): Element | null`\n- `matches(selectors: string): boolean`\n\n#### Mutation Methods\n\n- `append(...nodes: (Node | string)[]): void`\n- `prepend(...nodes: (Node | string)[]): void`\n- `before(...nodes: (Node | string)[]): void`\n- `after(...nodes: (Node | string)[]): void`\n- `remove(): void`\n- `replaceWith(...nodes: (Node | string)[]): void`\n- `insertAdjacentHTML(position: InsertPosition, html: string): void`\n- `insertAdjacentText(position: InsertPosition, text: string): void`\n- `insertAdjacentElement(position: InsertPosition, element: Element): Element | null`\n\n---\n\n### `Node`\n\nBase interface for all DOM nodes.\n\n#### Properties\n\n| Property | Type | Description |\n|---|---|---|\n| `nodeType` | `number` | The type of the node |\n| `nodeName` | `string` | The name of the node |\n| `nodeValue` | `string \\| null` | The value of the node |\n| `textContent` | `string \\| null` | The text content |\n| `parentNode` | `Node \\| null` | The parent node |\n| `parentElement` | `Element \\| null` | The parent element |\n| `firstChild` | `Node \\| null` | The first child |\n| `lastChild` | `Node \\| null` | The last child |\n| `previousSibling` | `Node \\| null` | The previous sibling |\n| `nextSibling` | `Node \\| null` | The next sibling |\n| `childNodes` | `Node[]` | All child nodes |\n| `ownerDocument` | `Document \\| null` | The owner document |\n\n#### Methods\n\n- `appendChild<T extends Node>(node: T): T`\n- `removeChild<T extends Node>(child: T): T`\n- `insertBefore<T extends Node>(node: T, child: Node | null): T`\n- `replaceChild<T extends Node>(node: Node, child: T): T`\n- `cloneNode(deep?: boolean): Node`\n- `contains(other: Node | null): boolean`\n- `hasChildNodes(): boolean`\n- `getRootNode(): Node`\n- `normalize(): void`\n- `isSameNode(otherNode: Node | null): boolean`\n- `isEqualNode(otherNode: Node | null): boolean`\n- `compareDocumentPosition(other: Node): number`\n- `lookupNamespaceURI(prefix: string | null): string | null`\n- `lookupPrefix(namespace: string | null): string | null`\n- `isDefaultNamespace(namespace: string | null): boolean`\n\n---\n\n### `CharacterData`\n\nExtends `Node`. Base interface for `Text`, `Comment`, and `ProcessingInstruction`.\n\n#### Properties & Methods\n\n- `data: string`\n- `readonly length: number`\n- `substringData(offset: number, count: number): string`\n- `appendData(data: string): void`\n- `insertData(offset: number, data: string): void`\n- `deleteData(offset: number, count: number): void`\n- `replaceData(offset: number, count: number, data: string): void`\n\n### `Text` extends `CharacterData`\n\n- `splitText(offset: number): Text`\n\n### `Comment` extends `CharacterData`\n\n### `ProcessingInstruction` extends `CharacterData`\n\n- `readonly target: string`\n\n### `DocumentType` extends `Node`\n\n- `readonly name: string`\n- `readonly publicId: string`\n- `readonly systemId: string`\n\n### `DocumentFragment` extends `Node`\n\n- `getElementById(elementId: string): Element | null`\n- `querySelector(selectors: string): Element | null`\n- `querySelectorAll(selectors: string): Element[]`\n\n---\n\n## Contributing\n\n```bash\nnpm install\nnpm run build\nnpm test\n```\n\n## Benchmark\n\n```bash\nnpm run benchmark\n```\n\n---\n\nFor more usage examples and advanced API, see the source code and tests in the repository.","_attachments":{},"homepage":"https://github.com/utooland/domparser-rs#readme","bugs":{"url":"https://github.com/utooland/domparser-rs/issues"},"license":"MIT"}