MCPcopy Create free account
hub / github.com/ClydeTime/Surge / urlencode

Function urlencode

Script/Task/xmly.js:35–38  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

33}
34
35const urlencode = (str) => {
36 str = (str + '').toString()
37 return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28'). replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+')
38}
39
40const inspect = (key) => {
41 if (typeof config[key]["num"] == 'undefined' || format(new Date().toDateString()) > config[key]["time"]){

Callers 1

mainFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected