cdrake-se
Version:
A library that will make your life easier when you want to search the internet, not pay APIs, search from your computer for free!
33 lines (31 loc) • 1.15 kB
JavaScript
/***
* Copyright (C) Rodolfo Herrera Hernandez. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root
* for full license information.
*
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
*
* For related information - https://github.com/CodeWithRodi/CDrake-SE/
*
* CDrake-SE: Efficient and fast open source search engine built on JavaScript capable of self-hosting.
*
* -> https://github.com/codewithrodi/CodexDrake/
* -> https://github.com/codewithrodi/CDrake-SE/
*
* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
****/
const NodeSuggest = require('node-suggest');
module.exports = async (Query) => ({
Results: await Promise.any([
NodeSuggest.google(Query),
NodeSuggest.ddg(Query),
NodeSuggest.bing(Query),
NodeSuggest.qwant(Query),
NodeSuggest.yahoo(Query),
NodeSuggest.startpage(Query),
NodeSuggest.dogpile(Query),
NodeSuggest.swisscows(Query),
NodeSuggest.ask(Query),
NodeSuggest.brave(Query)
])
});