en-etym
A tool for searching etymology of English words on https://www.etymonline.com/
Installation
npm i en-etym
Usage
const etym =
API
etym.getEtym
Promise
Fetch etymology information of a word in an asynchronized way. The resolved value of the Promise is the array of etymology information.
const etym = etym// [{"title":"glitter (v.)","etymDict":{"Old Norse":["glitra"],"Proto-Germanic":["*glit-"],"Old English":["glitenian"],"PIE":["*ghleid-","*ghel-"],"Greek":["khlidon"]}}]
etym.getEtymSync
void
Fetch etymology information of a word in a synchronized way. The argument of the callback function is the array of etymology information.
const etym = etym// [{"title":"glitter (v.)","etymDict":{"Old Norse":["glitra"],"Proto-Germanic":["*glit-"],"Old English":["glitenian"],"PIE":["*ghleid-","*ghel-"],"Greek":["khlidon"]}}]