cookbook.js

1.0.0 • Public • Published

📚 cookbook.js

npm version npm downloads license

📦 Welcome to cookbook.js, a versatile library designed to simplify recipe retrieval from tudoreceitas.com.

Overview

Cookbook.js offers a straightforward and intuitive interface for accessing a vast collection of recipes available on tudoreceitas.com.. With just a few lines of code, you can seamlessly integrate recipe fetching functionality into your project.

Installation

To install cookbook.js, simply run the following command in your project directory:

npm install cookbook.js

Usage

Getting started with cookbook.js is quick and easy. Once installed, you can use it to retrieve recipes with minimal effort.

Example:

const cookbook = require('cookbook.js');

// Retrieve a recipe
cookbook('chocolate cake', { format: true }).then(data => console.log(data));

Response Format

When you request a recipe, you'll receive a detailed object containing various attributes. Here's an overview of the response format:

{
    "title": "String",
    "description": "String",
    "imageUrl": "String",
    "category": { "name": "String", "link": "String" },
    "url": "String",
    "author": { "name": "String", "avatarUrl": "String" },
    "published_at": "String",
    "review": { "stars": "Number", "votes": "Number" },
    "comments": "Array",
    "duration": "String",
    "dificulty": "String",
    "ingredients": "Array",
    "instructions": "Array",
    "similar": "Array",
    "responseTime": "Number"
}

Contribution

We welcome contributions from the community to make cookbook.js even better. If you have ideas for improvements, bug fixes, or new features, feel free to submit a pull request on GitHub. Your contributions are greatly appreciated! 🚀

Package Sidebar

Install

npm i cookbook.js

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

17.8 kB

Total Files

4

Last publish

Collaborators

  • emptyy