A tool for searching etymology of English words on https://www.etymonline.com/
npm i en-etym
const etym = require('en-etym')
Fetch etymology information of a word in an asynchronized way. It returns a Promise which resolves the array of etymology information.
const etym = require('en-etym')
etym.getEtym('glitter').then(etymList => console.log(JSON.stringify(etymList)))
// [{"title":"glitter (v.)","etymDict":{"Old Norse":["glitra"],"Proto-Germanic":["*glit-"],"Old English":["glitenian"],"PIE":["*ghleid-","*ghel-"],"Greek":["khlidon"]}}]
Fetch etymology information of a word in a synchronized way. The argument of the callback function is the array of etymology information.
const etym = require('en-etym')
etym.getEtymSync('glitter', etymList => console.log(JSON.stringify(etymList)))
// [{"title":"glitter (v.)","etymDict":{"Old Norse":["glitra"],"Proto-Germanic":["*glit-"],"Old English":["glitenian"],"PIE":["*ghleid-","*ghel-"],"Greek":["khlidon"]}}]