etymo-js
Version:
NodeJS and browser util for fetching etymology results from https://www.etymonline.com
14 lines (13 loc) • 375 B
TypeScript
import { Entry, Language } from "./types";
declare class Etymo {
search(term: string): Promise<Entry[]>;
get(path: string, opts?: {
lang?: Language;
}): Promise<Entry | void>;
trending(): Promise<string[]>;
_buildSearchUrl(term: string): string;
_buildGetUrl(path: string, opts?: {
lang?: Language;
}): string;
}
export { Etymo };