postman-url-encoder

WebJar for postman-url-encoder

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-postmanlabs-postman-url-encoder
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

postman-url-encoder
WebJar for postman-url-encoder
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/postmanlabs/postman-url-encoder

Download github-com-postmanlabs-postman-url-encoder

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-postmanlabs-postman-url-encoder/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-postmanlabs-postman-url-encoder</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-postmanlabs-postman-url-encoder/
implementation 'org.webjars.npm:github-com-postmanlabs-postman-url-encoder:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-postmanlabs-postman-url-encoder/
implementation ("org.webjars.npm:github-com-postmanlabs-postman-url-encoder:1.0.2")
'org.webjars.npm:github-com-postmanlabs-postman-url-encoder:jar:1.0.2'
<dependency org="org.webjars.npm" name="github-com-postmanlabs-postman-url-encoder" rev="1.0.2">
  <artifact name="github-com-postmanlabs-postman-url-encoder" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-postmanlabs-postman-url-encoder', version='1.0.2')
)
libraryDependencies += "org.webjars.npm" % "github-com-postmanlabs-postman-url-encoder" % "1.0.2"
[org.webjars.npm/github-com-postmanlabs-postman-url-encoder "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Postman URL Encoder Build Status codecov

Postman URL Encoder is a NodeJS module that provides various URL encoding related APIs. This module is created to implement the WHATWG URL specification to remove dependency on Node's URL APIs across Postman systems. These APIs are useful to encode different parts (like hostname, path, query) of URL and convert PostmanUrl object into Node's Url like object.

Installing the Postman URL Encoder

Postman URL Encoder can be installed using NPM or directly from the git repository within your NodeJS projects. If installing from NPM, the following command installs the module and saves in your package.json

> npm install postman-url-encoder --save

Getting Started

Following example snippet shows how to convert PostmanUrl object into Node's Url like object.

var PostmanUrl = require('postman-collection').Url,
    pmEncoder = require('postman-url-encoder'),
    myUrl;

// Create PostmanUrl object
myUrl = new PostmanUrl('http://example.com/p/a/t/h?q1=v1');

// convert PostmanUrl object to Node's Url like object
myUrl = pmEncoder.toNodeUrl(myUrl));
// {
//   protocol: 'http:',
//   slashes: true,
//   auth: null,
//   host: 'example.com',
//   port: null,
//   hostname: 'example.com',
//   hash: null,
//   search: '?q1=v1',
//   query: 'q1=v1',
//   pathname: '/p/a/t/h',
//   path: '/p/a/t/h?q1=v1',
//   href: 'http://example.com/p/a/t/h?q1=v1'
// }

To know more about provided APIs, head over to Postman URL Encoder Docs.

org.webjars.npm

Postman Inc.

Versions

Version
1.0.2