Socket
Socket
Sign inDemoInstall

crawler-url-parser

Package Overview
Dependencies
40
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    crawler-url-parser

An `URL` parser for crawling purpose.


Version published
Weekly downloads
351
increased by2.33%
Maintainers
1
Install size
1.63 MB
Created
Weekly downloads
 

Readme

Source

crawler-url-parser

An URL parser for crawling purpose, has more than 200 unit test cases.

avatar of crawler-url-parser

NPM Package Downloads Total

Installation

npm install crawler-url-parser

Usage

Parse

const cup = require('crawler-url-parser');
let url = cup.parse("../ddd","http://question.stackoverflow.com/aaa/bbb/ccc/");
console.log(url.normalized);
console.log(url.host);
console.log(url.domain);
console.log(url.subdomain);
console.log(url.protocol);
console.log(url.path);

Extract

const cup = require('crawler-url-parser');  

Level

Query

Test

mocha or npm test

check test folder and quickstart.js for extra usage.

Keywords

FAQs

Last updated on 05 Dec 2017

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc