schemeless

1.2.0 • Public • Published

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

/schemeless/

    Package Sidebar

    Install

    npm i schemeless

    Weekly Downloads

    25

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • zeke