src/nodejs/jsshare

Procs

func canShare(): bool {.importjs: "Navigator.$1()", ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare
func canShare(text, url: cstring): bool {.
    importjs: "Navigator.$1({text: #, url: #})", ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare
func canShare(title, text, url: cstring): bool {.
    importjs: "Navigator.$1({title: #, text: #, url: #})", ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare
func canShare(url: cstring): bool {.importjs: "Navigator.$1({url: #})",
                                    ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/canShare
func share(text, url: cstring) {.importjs: "(await Navigator.$1({text: #, url: #}) || undefined)",
                                 discardable, ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share
func share(title, text, url: cstring) {.importjs: "(await Navigator.$1({title: #, text: #, url: #}) || undefined)",
                                        discardable, ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share
func share(url: cstring) {.importjs: "(await Navigator.$1({url: #}) || undefined)",
                           discardable, ...raises: [], tags: [].}
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share