Gathering detailed insights and metrics for recipe-scraper
Gathering detailed insights and metrics for recipe-scraper
Gathering detailed insights and metrics for recipe-scraper
Gathering detailed insights and metrics for recipe-scraper
npm install recipe-scraper
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
101 Stars
164 Commits
53 Forks
8 Watchers
3 Branches
8 Contributors
Updated on Jul 10, 2025
Latest Version
2.1.1
Package Id
recipe-scraper@2.1.1
Unpacked Size
81.95 kB
Size
16.22 kB
File Count
53
NPM Version
7.3.0
Node Version
15.5.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
A NodeJS package for scraping recipes from the web.
1npm install recipe-scraper
1// import the module 2const recipeScraper = require("recipe-scraper"); 3 4// enter a supported recipe url as a parameter - returns a promise 5async function someAsyncFunc() { 6 ... 7 let recipe = await recipeScraper("some.recipe.url"); 8 ... 9} 10 11// using Promise chaining 12recipeScraper("some.recipe.url").then(recipe => { 13 // do something with recipe 14 }).catch(error => { 15 // do something with error 16 });
Don't see a website you'd like to scrape? Open an issue and we'll do our best to add it.
Depending on the recipe, certain fields may be left blank. All fields are represented as strings or arrays of strings. The name, ingredients, and instructions properties are required for schema validation.
1{ 2 name: "", 3 ingredients: [], 4 instructions: [], 5 tags: [], 6 servings: "", 7 image: "", 8 time: { 9 prep: "", 10 cook: "", 11 active: "", 12 inactive: "", 13 ready: "", 14 total: "" 15 } 16}
If the url provided is invalid and a domain is unable to be parsed, an error message will be returned.
1recipeScraper("keyboard kitty").catch(error => { 2 console.log(error.message); 3 // => "Failed to parse domain" 4});
If the url provided doesn't match a supported domain, an error message will be returned.
1recipeScraper("some.invalid.url").catch(error => { 2 console.log(error.message); 3 // => "Site not yet supported" 4});
If a recipe is not found on a supported domain site, an error message will be returned.
1recipeScraper("some.no.recipe.url").catch(error => { 2 console.log(error.message); 3 // => "No recipe found on page" 4});
If a page does not exist or some other 400+ error occurs when fetching, an error message will be returned.
1recipeScraper("some.nonexistent.page").catch(error => { 2 console.log(error.message); 3 // => "No recipe found on page" 4});
If a supported url does not contain the proper sub-url to be a valid recipe, an error message will be returned including the sub-url required.
1recipeScraper("some.improper.url").catch(error => { 2 console.log(error.message); 3 // => "url provided must include '#subUrl'" 4});
With web scraping comes a reliance on the website being used not changing format. If this occurs we need to update our scrape. Please reach out if you are experiencing an issue.
I welcome pull requests that keep the scrapes up to date or add new ones. I'm doing my best to keep this package maintained and with your help this goal is much more achievable. Please add testing if you add a scrape. Thank you 😁
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 3/9 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More