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

parseuri

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parseuri

Method that parses a URI and returns an array of its components

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
601K
decreased by-63.23%
Maintainers
1
Weekly downloads
 
Created

What is parseuri?

The parseuri npm package is a simple utility for parsing URIs (Uniform Resource Identifiers). It breaks down a URI string into its components, such as protocol, host, port, path, query, and fragment.

What are parseuri's main functionalities?

Parse a URI

This feature allows you to parse a URI string into its components. The code sample demonstrates how to use the parseuri package to break down a URI into its parts, such as protocol, host, port, path, query, and fragment.

const parseuri = require('parseuri');
const uri = 'http://example.com:8080/path?query=string#fragment';
const parsed = parseuri(uri);
console.log(parsed);

Other packages similar to parseuri

FAQs

Package last updated on 18 Sep 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