{"id":16834760,"url":"https://github.com/dylanpiercey/mini-url","last_synced_at":"2025-04-11T04:35:30.141Z","repository":{"id":57297691,"uuid":"84027103","full_name":"DylanPiercey/mini-url","owner":"DylanPiercey","description":"📖 Lightweight universal url parser.","archived":false,"fork":false,"pushed_at":"2017-10-22T03:16:34.000Z","size":237,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T04:35:21.776Z","etag":null,"topics":["isomorphic","mini-url","parser","universal","url-parser"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DylanPiercey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-06T03:45:41.000Z","updated_at":"2023-09-08T17:21:51.000Z","dependencies_parsed_at":"2022-09-02T05:42:08.299Z","dependency_job_id":null,"html_url":"https://github.com/DylanPiercey/mini-url","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fmini-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fmini-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fmini-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DylanPiercey%2Fmini-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DylanPiercey","download_url":"https://codeload.github.com/DylanPiercey/mini-url/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345258,"owners_count":21088231,"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":["isomorphic","mini-url","parser","universal","url-parser"],"created_at":"2024-10-13T12:07:47.568Z","updated_at":"2025-04-11T04:35:30.122Z","avatar_url":"https://github.com/DylanPiercey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003c!-- Logo --\u003e\n  \u003cbr/\u003e\n  Mini-URL\n\t\u003cbr/\u003e\n\n  \u003c!-- Stability --\u003e\n  \u003ca href=\"https://nodejs.org/api/documentation.html#documentation_stability_index\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/stability-stable-brightgreen.svg\" alt=\"API Stability\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- TypeScript --\u003e\n  \u003ca href=\"http://typescriptlang.org\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/%3C%2F%3E-typescript-blue.svg\" alt=\"TypeScript\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Prettier --\u003e\n  \u003ca href=\"https://github.com/prettier/prettier\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/styled_with-prettier-ff69b4.svg\" alt=\"Styled with prettier\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Travis build --\u003e\n  \u003ca href=\"https://travis-ci.org/DylanPiercey/mini-url\"\u003e\n  \u003cimg src=\"https://img.shields.io/travis/DylanPiercey/mini-url.svg\" alt=\"Build status\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Coveralls coverage --\u003e\n  \u003ca href=\"https://coveralls.io/github/DylanPiercey/mini-url\"\u003e\n    \u003cimg src=\"https://img.shields.io/coveralls/DylanPiercey/mini-url.svg\" alt=\"Test Coverage\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- NPM version --\u003e\n  \u003ca href=\"https://npmjs.org/package/mini-url\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/mini-url.svg\" alt=\"NPM Version\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Downloads --\u003e\n  \u003ca href=\"https://npmjs.org/package/mini-url\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/mini-url.svg\" alt=\"Downloads\"/\u003e\n  \u003c/a\u003e\n  \u003c!-- Size --\u003e\n  \u003ca href=\"https://npmjs.org/package/mini-url\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/size-1.21kb-green.svg\" alt=\"Browser Bundle Size\"/\u003e\n  \u003c/a\u003e\n\u003c/h1\u003e\n\nLight weight, universal, URL parser for node and the browser with built in caching.\n\n# Installation\n\n```console\nnpm install mini-url\n```\n\n# Example\n\n```javascript\nimport { parse, stringify } from 'mini-url'\n\n// Parse a url into an object.\nparse('http://host.com:8080/p/a/t/h?query=string#hash')\n/* {\n    protocol: 'http:',\n    host: 'host.com:8080',\n    port: '8080',\n    hostname: 'host.com',\n    hash: '#hash',\n    search: '?query=string',\n    pathname: '/p/a/t/h',\n    href: 'http://host.com:8080/p/a/t/h?query=string#hash'\n} */\n\n// Stringify an object into a url string.\nstringify({\n  protocol: 'http:',\n  host: 'host.com:8080',\n  hash: '#hash',\n  search: '?query=string',\n  pathname: '/p/a/t/h'\n})\n/* http://host.com:8080/p/a/t/h?query=string#hash */\n```\n\n### Contributions\n\n* Use `npm test` to build and run tests.\n\nPlease feel free to create a PR!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanpiercey%2Fmini-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanpiercey%2Fmini-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanpiercey%2Fmini-url/lists"}