Socket
Book a DemoInstallSign in
Socket

schemeless

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

schemeless

Remove the parts of URLs that humans don't really need to see

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

schemeless

Remove the parts of URLs that humans don't really need to see.

Examples

https://example.com       -> example.com
http://foo.example.com    -> foo.example.com
http://www.oldschool.com  -> oldschool.com
https://website.com/      -> website.com
https://a.com/foo#bar     -> a.com/foo#bar
HTTP://LOUDBOT.COM        -> LOUDBOT.COM

Installation

npm install schemeless --save

Usage

var schemeless = require("schemeless")
schemeless("https://example.com")

See Also

  • AnchorMe detects URLs and email address in text and converts them to clickable HTML anchor links.

Test

npm install
npm test

Keywords

url

FAQs

Package last updated on 03 Mar 2017

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