Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as denowiki from "https://raw.githubusercontent.com/el3um4s/DenoWiki/master/mod.ts";

§Functions

getHTMLText

Returns the parsed text of the wikitext.

getNumberResults

Returns the total number of matches found for the searched term. May be bigger than the results returned by wikiSearch(options)

getNumberResultsListed

Returns the number of results found by wikiSearch(options)

getPageId

Returns the pageID number of Wikipedia referring to the searched term

getPageTitle

Returns the Title of Wikipedia referring to the page searched

getSearchTitle

Returns the Title of Wikipedia referring to the searched term

getSuggestion

Returns the suggested term related to the searched term

getWikiText

Returns the original wikitext.

hasResult

TRUE if there are results for the searched term

hasSuggestion

TRUE if there are suggested searches related to the searched term

wikiParse

Returns the contents of a Wikipedia page

wikiParseQuery

Returns the url address to be used as the source to obtain the information

wikiSearch

Search for a term on Wikipedia and return the corresponding pages (max 500) Options can be used to customize parameters: language (default "en") srsearch: term to search (default "Hello World") srlimit: how many total pages to return (default 500) srprop: which pieces of information to get (default "size|wordcount|timestamp|snippet")

const wikiJSON = await wiki.wikiSearch( { language: en, srsearch: "hello world", srlimit: 5 } );
wikiSearchQuery

Returns the url address to be used as the source to obtain the information

§Type Aliases

WikiParse_Params
WikiParse_Query
WikiSearch_Params
WikiSearch_Query