/ student-intifada / node_modules / protocols /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]lib/10 months ago -  
[   ]LICENSE10 months ago1.1K 
[TXT]README.md10 months ago6.2K595aea1 more query options + view options [كارل مبارك]
[   ]package.json10 months ago935 afd0ccc remove unused [كارل مبارك]
README.md

protocols

Support me on Patreon Buy me a book PayPal Ask me anything Travis Version Downloads Get help on Codementor

Buy Me A Coffee

Get the protocols of an input url.

:cloud: Installation

# Using npm
npm install --save protocols

# Using yarn
yarn add protocols

:clipboard: Example

// Dependencies
const protocols = require("protocols");

console.log(protocols("git+ssh://git@some-host.com/and-the-path/name"));
// ["git", "ssh"]

console.log(protocols("http://ionicabizau.net", true));
// "http"

:question: Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. :bug:
  3. For direct and quick help, you can use Codementor. :rocket:

:memo: Documentation

protocols(input, first)

Returns the protocols of an input url.

Params

Return

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:sparkling_heart: Support my projects

I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

Thanks! :heart:

:dizzy: Where is this library used?

If you are using this library in one of your projects, add it in this list. :sparkles:

:scroll: License

MIT © Ionică Bizău

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80