MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / addHttpsToUrl

Function addHttpsToUrl

packages/utilities/src/url.ts:15–20  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

13
14// TODO: Should handle this on validation/save when creating an account
15export const addHttpsToUrl = (url: string) => {
16 if (!url.startsWith('http://') && !url.startsWith('https://')) {
17 return appendProtocol(url);
18 }
19 return url;
20};
21
22/** this function will parse an object into query string params */
23export const qs = (params: any) => {

Callers 3

magicLinkStrategyFunction · 0.90
handlerFunction · 0.90
HeaderFunction · 0.90

Calls 1

appendProtocolFunction · 0.85

Tested by

no test coverage detected