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

PropertyValueDescription
serviceuv | scramjet | meteor | rammerheadChoose a proxy service.
autoHttpstrue | falseAutomatically add https:// if needed.
searchEngineURL with %s for queryAutomatically search non-URLs.