Socket
Socket
Sign inDemoInstall

@captainsafia/ratatouille

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@captainsafia/ratatouille

A Node.js interface to Allrecipes.com


Version published
Weekly downloads
1
decreased by-93.75%
Maintainers
1
Weekly downloads
 
Created
Source

ratatouille

ratatouille is a Node.js scrapper for allrecipes.com. It allows you to extract basic information about a recipe, the ingredients required, and the steps involved.

Installation

npm install @captainsafia/ratatouille

Usage

> import Ratatouille from '@captainsafia/ratatouille';
> const recipe = Ratatouille.load('http://allrecipes.com/recipe/254910/kicked-up-mac-cheese').then(function(html) {
                                                                                                                  return new Ratatouille(html);
                                                                                                            }});
> recipe.readyInTime
'25 minutes'
> recipe.prepTime
'10 minutes'
> recipe.cookTime
'15 minutes'
> recipe.calories
'830'
> recipe.ingredients
[ { quantity: '14.5',
    unit: 'ounce',
    preparation: '',
    name: 'package macaroni and cheese mix' },
  { quantity: '1/2', unit: 'cup', preparation: '', name: 'milk' },
  { quantity: '1/2',
    unit: 'cup',
    preparation: 'divided',
    name: 'butter' },
  { quantity: '15',
    unit: 'ounce',
    preparation: 'drained',
    name: 'can Libby\'s® Sweet Peas' },
  { quantity: '15',
    unit: 'ounce',
    preparation: 'drained',
    name: 'can Libby\'s® Whole Kernel Sweet Corn' },
  { quantity: '4',
    unit: 'ounce',
    preparation: 'drained',
    name: 'jar diced pimentos' },
  { quantity: '1/2',
    unit: 'cups',
    preparation: '',
    name: 'panko bread crumbs' } ]

Ratatouille Demo

Keywords

FAQs

Package last updated on 10 Mar 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc