{"id":16370231,"url":"https://github.com/delvedor/fast-decode-uri-component","last_synced_at":"2025-07-17T23:38:14.428Z","repository":{"id":57232965,"uuid":"125359061","full_name":"delvedor/fast-decode-uri-component","owner":"delvedor","description":"Fast and safe decodeURIComponent","archived":false,"fork":false,"pushed_at":"2019-10-06T11:48:30.000Z","size":29,"stargazers_count":29,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-11T17:34:36.929Z","etag":null,"topics":["decode-urls","safe","speed"],"latest_commit_sha":null,"homepage":"","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/delvedor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-15T11:45:08.000Z","updated_at":"2024-05-26T05:23:24.000Z","dependencies_parsed_at":"2022-08-31T20:51:13.228Z","dependency_job_id":null,"html_url":"https://github.com/delvedor/fast-decode-uri-component","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/delvedor/fast-decode-uri-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Ffast-decode-uri-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Ffast-decode-uri-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Ffast-decode-uri-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Ffast-decode-uri-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delvedor","download_url":"https://codeload.github.com/delvedor/fast-decode-uri-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delvedor%2Ffast-decode-uri-component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264903691,"owners_count":23681133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["decode-urls","safe","speed"],"created_at":"2024-10-11T03:04:23.890Z","updated_at":"2025-07-17T23:38:14.408Z","avatar_url":"https://github.com/delvedor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fast-decode-uri-component\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  [![Build Status](https://travis-ci.org/delvedor/fast-decode-uri-component.svg?branch=master)](https://travis-ci.org/delvedor/fast-decode-uri-component)\n\nDecodes strings encoded by `encodeURI` and `encodeURIComponent`, without throwing errors on invalid escapes, instead, it returns `null`.\n\n\n## Installation\n```\nnpm install fast-decode-uri-component\n```\n\n## Usage\n```js\nconst fastDecode = require('fast-decode-uri-component')\n\nconsole.log(fastDecode('test')) // 'test'\nconsole.log(fastDecode('%25')) // '%'\nconsole.log(fastDecode('/test/hel%2Flo')) // '/test/hel/lo'\n\nconsole.log(fastDecode('/test/hel%\"Flo')) // null\nconsole.log(fastDecode('%7B%ab%7C%de%7D')) // null\nconsole.log(fastDecode('%ab')) // null\n```\n\n## Benchmarks\nYou can find the benchmark file [here](https://github.com/delvedor/fast-decode-uri-component/blob/master/bench.js).\n```\n# fast-decode-uri-component\nok ~539 ms (0 s + 539114308 ns)\n\n# decodeURIComponent\nok ~6.06 s (6 s + 62305153 ns)\n```\n\n## Acknowledgements\nThis project has been forked from [`jridgewell/safe-decode-uri-component`](https://github.com/jridgewell/safe-decode-uri-component) because I wanted to change the behaviour of the library on invalid inputs, plus change some internals.\u003cbr\u003e\nAll the credits before the commit [`53000fe`](https://github.com/delvedor/fast-decode-uri-component/commit/53000feb8c268eec7a24620fd440fdd540be32b7) goes to the `jridgewell/safe-decode-uri-component` project [contributors](https://github.com/delvedor/fast-decode-uri-component/graphs/contributors).\u003cbr\u003e\nSince the commit [`9673ab7`](https://github.com/delvedor/fast-decode-uri-component/commit/9673ab7820ef92081206a9f4fd158ffe9a352861) the project will be maintained by [**@delvedor**](https://github.com/delvedor).\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelvedor%2Ffast-decode-uri-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelvedor%2Ffast-decode-uri-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelvedor%2Ffast-decode-uri-component/lists"}