Encode
Generate an encoded URL.
Using default service, no auto https, and no search engine.
await chemical.encode("https://example.com")
Advanced encoding with options.
await chemical.encode("https://example.com", {
service: "uv",
autoHttps: true,
searchEngine: "https://www.google.com/search?q=%s"
})
Config
Property | Value | Description |
---|---|---|
service | uv | scramjet | meteor | rammerhead | Choose a proxy service. |
autoHttps | true | false | Automatically add https:// if needed. |
searchEngine | URL with %s for query | Automatically search non-URLs. |