
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Simple, promise-based, node module for interfacing with Yelp API v2.0.
var yelp = require("node-yelp");
var client = yelp.createClient({
oauth: {
"consumer_key": "xxxxxxxxxxxxxxxxxxxxxxxx",
"consumer_secret": "xxxxxxxxxxxxxxxxxxxxxxxx",
"token": "xxxxxxxxxxxxxxxxxxxxxxxx",
"token_secret": "xxxxxxxxxxxxxxxxxxxxxxxx"
},
// Optional settings:
httpClient: {
maxSockets: 25 // ~> Default is 10
}
});
client.search({
terms: "Café de la presse",
location: "BELGIUM"
}).then(function (data) {
var businesses = data.businesses;
var location = data.region;
// ...
});
client.business("grand-place-bruxelles-2", {
cc: "US"
}).then(function (data) {
// ...
});
Every error that comes from the module has an id
property attached to it:
var yelp = require("node-yelp");
client.search({
terms: "Café de la presse",
location: "BELGIUM"
}).then(function (data) {
// ..
}).catch(function (err) {
if (err.type === yelp.errorTypes.areaTooLarge) {
// ..
} else if (err.type === yelp.errorTypes.unavailableForLocation) {
// ..
}
});
Types:
var types = {
unknown: "UNKNOWN",
internal: "INTERNAL_ERROR",
exceededRequests: "EXCEEDED_REQS",
missingParameter: "MISSING_PARAMETER",
invalidParameter: "INVALID_PARAMETER",
invalidSignature: "INVALID_SIGNATURE",
invalidCredentials: "INVALID_CREDENTIALS",
invalidOAuthCredentials: "INVALID_OAUTH_CREDENTIALS",
invalidOAuthUser: "INVALID_OAUTH_USER",
accountUnconfirmed: "ACCOUNT_UNCONFIRMED",
passwordTooLong: "PASSWORD_TOO_LONG",
unavailableForLocation: "UNAVAILABLE_FOR_LOCATION",
areaTooLarge: "AREA_TOO_LARGE",
multipleLocations: "MULTIPLE_LOCATIONS",
businessUnavailable: "BUSINESS_UNAVAILABLE",
unspecifiedLocation: "UNSPECIFIED_LOCATION"
};
~2.2.2
~2.40.0
MIT
FAQs
Simple, promise-based, node module for interfacing with Yelp API v2.0
The npm package node-yelp receives a total of 9 weekly downloads. As such, node-yelp popularity was classified as not popular.
We found that node-yelp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.