Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Documenu is an that API provides access to a Database of over 600,000 US Restaurant Menus with over 50,000,000 individual menu items. https://documenu.com
This package is intended to make it easier to interact with the API when using NodeJS
npm install -S documenu
In order to use this API you need an API key. You can get it here: Get API Key
const Documenu = require('documenu')
Documenu.configure('YOUR-API-KEY')
let result = await Documenu.Restaurants.getByState('NY');
Documenu.Restaurants.getByState('NY')
.then(res=> {
console.log(res);
});
const params = {
"lat": "40.68919",
"distance": "1",
"lon": "-73.992378",
"page": "1"
}
let result = await Documenu.MenuItems.searchGeo(params)
Documenu.Restaurants.MenuItems.searchGeo(params)
.then(res=> {
console.log(res);
});
get(restaurantid)
restaurantid : string
getMenuItems(restaurantid)
restaurantid : string
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
searchFields(params)
Params (Optional)
exact | Boolean | Search for exact match to terms
restaurant_name | string | Data Size of Results
restaurant_phone | string | Search By Phone Number
restaurant_website | string | Search By Website
address | string | Search By Address
state | string | Search By State Code
zip_code | number | Search By Zip Code
size | number | Data Size of Results
page | number | Page Through Results
fullmenu | Boolean | include full menus
searchGeo(params)
Params (Required)
lat | number | Latitude of search area
lon | number | Longitude of search area
distance | number | Search Area radius (in miles)
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
fullmenu | Boolean | include full menus
getByState(state,params)
state : string
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
fullmenu | Boolean | include full menus
getByZipCode(zip,params)
zip : string
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
fullmenu | Boolean | include full menus
geoBoundingBox(params)
Params (Required)
top_left | string | Top Left coordinates of Bounding Box in lat,lon
bottom_right | string | Bottom Right coordinates of Bounding Box in lat,lon
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
fullmenu | Boolean | include full menus
withinTravelRadius(state,params)
Params (Required)
lat | number | Latitude of search area
lon | number | Longitude of search area
minutes | number | Number of minutes
mode | string | Mode of Transport (walking or driving)
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
fullmenu | Boolean | include full menus
withinGeoPolygon(points,params)
points: Array of points in [[lat,lon]] format
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
fullmenu | Boolean | include full menus
get(itemid)
itemid : string
searchGeo(params)
Params (Required)
lat | number | Latitude of search area
lon | number | Longitude of search area
distance | number | Search Area radius (in miles)
Params (Optional)
size | number | Data Size of Results
page | number | Page Through Results
View API Docs here: https://documenu.com/docs
For Support Email support@documenu.com
FAQs
Package to easily use Documenu API. US restaurant menu API With Over 600,000 Restaurants: www.Documenu.com
The npm package documenu receives a total of 2 weekly downloads. As such, documenu popularity was classified as not popular.
We found that documenu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.