{"id":15012306,"url":"https://github.com/postmanlabs/postman-url-encoder","last_synced_at":"2025-04-05T00:05:36.333Z","repository":{"id":16883647,"uuid":"80623055","full_name":"postmanlabs/postman-url-encoder","owner":"postmanlabs","description":"Implements URL encoding according to the WHATWG specification","archived":false,"fork":false,"pushed_at":"2025-03-28T22:14:14.000Z","size":1821,"stargazers_count":19,"open_issues_count":12,"forks_count":12,"subscribers_count":19,"default_branch":"develop","last_synced_at":"2025-03-28T23:03:52.913Z","etag":null,"topics":["postman","url","url-encoder","url-parser","whatwg-url"],"latest_commit_sha":null,"homepage":"https://www.postmanlabs.com/postman-url-encoder/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postmanlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.yaml","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-01T13:36:57.000Z","updated_at":"2025-03-27T11:53:52.000Z","dependencies_parsed_at":"2024-06-18T14:00:26.200Z","dependency_job_id":"bc55def3-000b-43a9-b1fc-0dc8375b1ec0","html_url":"https://github.com/postmanlabs/postman-url-encoder","commit_stats":{"total_commits":183,"total_committers":9,"mean_commits":"20.333333333333332","dds":0.6939890710382514,"last_synced_commit":"01b83b36f64e2b04e8f303ba0fc5ea4cb1d9b659"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-url-encoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-url-encoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-url-encoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-url-encoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmanlabs","download_url":"https://codeload.github.com/postmanlabs/postman-url-encoder/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266562,"owners_count":20910836,"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":["postman","url","url-encoder","url-parser","whatwg-url"],"created_at":"2024-09-24T19:42:25.017Z","updated_at":"2025-04-05T00:05:36.311Z","avatar_url":"https://github.com/postmanlabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postman URL Encoder [![Build Status](https://travis-ci.com/postmanlabs/postman-url-encoder.svg?branch=develop)](https://travis-ci.com/postmanlabs/postman-url-encoder) [![codecov](https://codecov.io/gh/postmanlabs/postman-url-encoder/branch/develop/graph/badge.svg)](https://codecov.io/gh/postmanlabs/postman-url-encoder)\n\nPostman URL Encoder is a NodeJS module that provides various URL encoding related APIs. This module is created to\nimplement the [WHATWG URL specification](https://url.spec.whatwg.org/) to remove dependency on Node's URL APIs across\nPostman systems. These APIs are useful to encode different parts (like hostname, path, query) of URL and convert\n[PostmanUrl](http://www.postmanlabs.com/postman-collection/Url.html) object into\n[Node's Url](https://nodejs.org/dist/latest-v10.x/docs/api/url.html#url_legacy_urlobject) like object.\n\n## Installing the Postman URL Encoder\n\nPostman URL Encoder can be installed using NPM or directly from the git repository within your NodeJS projects. If\ninstalling from NPM, the following command installs the module and saves in your `package.json`\n\n```terminal\n\u003e npm install postman-url-encoder --save\n```\n\n## Getting Started\n\nFollowing example snippet shows how to convert [PostmanUrl](http://www.postmanlabs.com/postman-collection/Url.html)\nobject into [Node's Url](https://nodejs.org/dist/latest-v10.x/docs/api/url.html#url_legacy_urlobject) like object.\n\n```javascript\nvar PostmanUrl = require('postman-collection').Url,\n    pmEncoder = require('postman-url-encoder'),\n    myUrl;\n\n// Create PostmanUrl object\nmyUrl = new PostmanUrl('http://example.com/p/a/t/h?q1=v1');\n\n// convert PostmanUrl object to Node's Url like object\nmyUrl = pmEncoder.toNodeUrl(myUrl));\n// {\n//   protocol: 'http:',\n//   slashes: true,\n//   auth: null,\n//   host: 'example.com',\n//   port: null,\n//   hostname: 'example.com',\n//   hash: null,\n//   search: '?q1=v1',\n//   query: 'q1=v1',\n//   pathname: '/p/a/t/h',\n//   path: '/p/a/t/h?q1=v1',\n//   href: 'http://example.com/p/a/t/h?q1=v1'\n// }\n```\n\nTo know more about provided APIs, head over to [Postman URL Encoder Docs](http://www.postmanlabs.com/postman-url-encoder).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmanlabs%2Fpostman-url-encoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmanlabs%2Fpostman-url-encoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmanlabs%2Fpostman-url-encoder/lists"}