{"id":19621288,"url":"https://github.com/commenthol/parseurl-fast","last_synced_at":"2026-06-18T10:31:42.612Z","repository":{"id":57319686,"uuid":"122124739","full_name":"commenthol/parseurl-fast","owner":"commenthol","description":"A fast url parser","archived":false,"fork":false,"pushed_at":"2018-08-21T06:59:27.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-29T22:14:01.393Z","etag":null,"topics":["fast","url-parser"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commenthol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-19T21:48:28.000Z","updated_at":"2023-09-08T17:36:56.000Z","dependencies_parsed_at":"2022-08-25T22:42:21.698Z","dependency_job_id":null,"html_url":"https://github.com/commenthol/parseurl-fast","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/commenthol/parseurl-fast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fparseurl-fast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fparseurl-fast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fparseurl-fast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fparseurl-fast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commenthol","download_url":"https://codeload.github.com/commenthol/parseurl-fast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fparseurl-fast/sbom","scorecard":{"id":300833,"data":{"date":"2025-08-11","repo":{"name":"github.com/commenthol/parseurl-fast","commit":"b0fd7a3be2c271640d7a72b7a608477699300fec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T20:35:08.293Z","repository_id":57319686,"created_at":"2025-08-17T20:35:08.293Z","updated_at":"2025-08-17T20:35:08.293Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34487069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fast","url-parser"],"created_at":"2024-11-11T11:22:15.369Z","updated_at":"2026-06-18T10:31:42.581Z","avatar_url":"https://github.com/commenthol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parseurl-fast\n\n\u003e A fast url parser\n\n[![NPM version](https://badge.fury.io/js/parseurl-fast.svg)](https://www.npmjs.com/package/parseurl-fast/)\n[![Build Status](https://secure.travis-ci.org/commenthol/parseurl-fast.svg?branch=master)](https://travis-ci.org/commenthol/parseurl-fast)\n\nParses an url with memoization using a single safe regex.\nTargets node only, so don't try to use in browser.\nFocuses on urls used at the server side.\n\nReturns same parsing result as [url.parse][] except:\n- Does not parse `javascript` URIs\n- Does not parse some schemes. Please check `excludes` in `test/conformance.test.js`\n\n## Usage\n\nInstall with\n\n```bash\nnpm i -S parseurl-fast\n```\n\nParse an Url with:\n\n```js\nconst parseurl = require('parseurl-fast')\n\nconst url = 'https://www.host.name:4000/path?query#hash'\nconst parsed = parseurl({url})\n//\u003e {\n//\u003e   protocol: 'https:',\n//\u003e   ...\n//\u003e }\n```\n\n## Benchmarks\n\nnode v8.11.4\n\n```\n$ npm run benchmark\n\n---- url ----\n\nnode url.parse   x 82,267 ops/sec ±1.70% (83 runs sampled)\nparseurl         x 83,700 ops/sec ±1.10% (90 runs sampled)\nparseurl-fast    x 231,092 ops/sec ±1.26% (91 runs sampled)\nFastest is parseurl-fast   \n\n---- long url ~8000 chars ----\n\nnode url.parse   x 1,945 ops/sec ±0.49% (92 runs sampled)\nparseurl         x 1,929 ops/sec ±0.34% (94 runs sampled)\nparseurl-fast    x 10,051 ops/sec ±0.57% (90 runs sampled)\nFastest is parseurl-fast   \n```\n\n## Security recommendations\n\nThis module can parse an infinite number of chars.\nTo comply with [RFC 7230 Section 3.1.1][] which recommends a minimum of 8000 octets,\nyou should limit the max. number of chars to such or even smaller extent (depends on your app).\nIn such case respond with a 414 status code.\nThe longer the urls the longer the parsing.\n\nE.g. if using connect middlewares, do sth. like this:\n\n```js\nconst parseurl = require('parseurl-fast')\n\napp.use((req, res, next) =\u003e {\n  let err\n  if (req.url.length \u003c= 8000) {\n    parseurl(req)\n  } else {\n    err = new Error('URI Too Long')\n    err.status = 414\n  }\n  next(err)\n})\n```\n\nThis module uses Regular Expressions for parsing, which may be subject to [ReDoS][] attacks. Anyhow those expressions implemented should not contain any nondeterministic/ harmful states. The [redos](https://npmjs.org/package/redos) tool, was used to trace irregularities during development - check with `npm run redos`.\n\n## License\n\n[MIT Licensed](./LICENSE.md)\n\n## References\n\n- [url.parse][]\n- [parseurl][]\n- [RFC 3986][]\n- [url.spec.whatwg][]\n\n[url.parse]: https://nodejs.org/api/url.html#url_url_parse_urlstring_parsequerystring_slashesdenotehost\n[RFC 3986]: https://tools.ietf.org/html/rfc3986\n[RFC 7230 Section 3.1.1]: https://tools.ietf.org/html/rfc7230#section-3.1.1\n[url.spec.whatwg]: https://url.spec.whatwg.org/\n[ReDoS]: https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS\n[parseurl]: https://npmjs.com/package/parseurl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fparseurl-fast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommenthol%2Fparseurl-fast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fparseurl-fast/lists"}