This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = require('lodash'); | |
const request = require('request'); | |
(function () { | |
const phrase = "may the force be with you"; | |
const key = "TZlKw4gd1qFQhA2CbMLa"; | |
const url = "http://thesaurus.altervista.org/service.php?language=en_US&output=json&key=" + key + "&word="; | |
const getSynonyms = (word) => { | |
return new Promise((resolve, reject) => { |