{"id":21754630,"url":"https://github.com/aegisjsproject/url","last_synced_at":"2025-04-13T09:09:03.199Z","repository":{"id":259912798,"uuid":"879439893","full_name":"AegisJSProject/url","owner":"AegisJSProject","description":"Safe URL parsing/escaping via JS tagged templates","archived":false,"fork":false,"pushed_at":"2025-04-10T16:59:12.000Z","size":341,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T09:08:57.371Z","etag":null,"topics":["aegis","aegisjsproject","security","url","url-parser"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@aegisjsproject/url","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/AegisJSProject.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"shgysk8zer0","liberapay":"shgysk8zer0"}},"created_at":"2024-10-27T22:36:56.000Z","updated_at":"2025-04-10T16:59:14.000Z","dependencies_parsed_at":"2024-11-14T19:24:55.602Z","dependency_job_id":"bec09ea7-58bd-45e5-9a9a-0ff9f0baa3a8","html_url":"https://github.com/AegisJSProject/url","commit_stats":null,"previous_names":["aegisjsproject/url"],"tags_count":4,"template":false,"template_full_name":"shgysk8zer0/npm-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Furl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Furl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Furl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Furl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AegisJSProject","download_url":"https://codeload.github.com/AegisJSProject/url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688565,"owners_count":21145766,"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":["aegis","aegisjsproject","security","url","url-parser"],"created_at":"2024-11-26T09:14:32.101Z","updated_at":"2025-04-13T09:09:03.178Z","avatar_url":"https://github.com/AegisJSProject.png","language":"JavaScript","funding_links":["https://github.com/sponsors/shgysk8zer0","https://liberapay.com/shgysk8zer0","https://liberapay.com/shgysk8zer0/donate"],"categories":[],"sub_categories":[],"readme":"# `@aegisjsproject/url`\n\nSafe URL parsing/escaping via JS tagged templates\n\n[![CodeQL](https://github.com/AegisJSProject/url/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/AegisJSProject/url/actions/workflows/codeql-analysis.yml)\n![Node CI](https://github.com/AegisJSProject/url/workflows/Node%20CI/badge.svg)\n![Lint Code Base](https://github.com/AegisJSProject/url/workflows/Lint%20Code%20Base/badge.svg)\n\n[![GitHub license](https://img.shields.io/github/license/AegisJSProject/url.svg)](https://github.com/AegisJSProject/url/blob/master/LICENSE)\n[![GitHub last commit](https://img.shields.io/github/last-commit/AegisJSProject/url.svg)](https://github.com/AegisJSProject/url/commits/master)\n[![GitHub release](https://img.shields.io/github/release/AegisJSProject/url?logo=github)](https://github.com/AegisJSProject/url/releases)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/shgysk8zer0?logo=github)](https://github.com/sponsors/shgysk8zer0)\n\n[![npm](https://img.shields.io/npm/v/@aegisjsproject/url)](https://www.npmjs.com/package/@aegisjsproject/url)\n![node-current](https://img.shields.io/node/v/@aegisjsproject/url)\n![npm bundle size gzipped](https://img.shields.io/bundlephobia/minzip/@aegisjsproject/url)\n[![npm](https://img.shields.io/npm/dw/@aegisjsproject/url?logo=npm)](https://www.npmjs.com/package/@aegisjsproject/url)\n\n[![GitHub followers](https://img.shields.io/github/followers/shgysk8zer0.svg?style=social)](https://github.com/shgysk8zer0)\n![GitHub forks](https://img.shields.io/github/forks/AegisJSProject/url.svg?style=social)\n![GitHub stars](https://img.shields.io/github/stars/AegisJSProject/url.svg?style=social)\n[![Twitter Follow](https://img.shields.io/twitter/follow/shgysk8zer0.svg?style=social)](https://twitter.com/shgysk8zer0)\n\n[![Donate using Liberapay](https://img.shields.io/liberapay/receives/shgysk8zer0.svg?logo=liberapay)](https://liberapay.com/shgysk8zer0/donate \"Donate using Liberapay\")\n- - -\n\n- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)\n- [Contributing](./.github/CONTRIBUTING.md)\n\u003c!-- - [Security Policy](./.github/SECURITY.md) --\u003e\n\n## Installation\n\n```bash\nnpm i @aegisjsproject/url\n```\n\n## Usage\n\n```js\nimport { url } from '@aegisjsproject/url';\n\n// Santize user input (encodes and escapes as necessary)\nconst url1 = url`https://example.com/${userInput}`;\nconst url2 = url`${location.origin}/path/${someVar}`;\n\n// Create a `blob:` URI from a file\nconst file = new File(['Hello, World!'], hi.txt, { type: 'text/plain' });\nconst download = `\u003ca href=\"${url`file`}\" download=\"${file.name}\"\u003eDownload File\u003c/a\u003e`;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faegisjsproject%2Furl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faegisjsproject%2Furl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faegisjsproject%2Furl/lists"}