Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

native-url

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

native-url

Brings the node url api layer to whatwg-url class

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
475K
decreased by-40.54%
Maintainers
1
Weekly downloads
 
Created
Source

native-url

This module provides the node url api layer over the whatwg-url class.

1.45 KB Gzipped.

Works both on the server and client.

Install

npm i native-url

Usage

const url = require('native-url');

Apis

Refer the node url docs for detailed api documentation

url.parse(urlStr, [parseQueryString], [slashesDenoteHost])

Takes a URL string, parses it, and returns a URL object.

url.format(urlObj)

Take a parsed URL object, and returns a URL string.

url.resolve(from, to)

Resolves a target url wrt the base url

Keywords

FAQs

Package last updated on 21 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc