url-schemify
Tiny module for adding scheme to URLs
Usage
To install module run:
npm i -S url-schemify
or
npm install --save url-schemify
then require
module in your script:
var schemify = ;var assert = ; // url-schemify adds default scheme (http) to the URLs that miss it assert;assert; // default scheme could be configured through the options parameter assert;// { scheme: '' } will produce protocol-related URLassert; // url-schemify doesn't modify URLs that already have scheme or protocol-related ones: assert;assert;assert;assert;