Skip to content

Possible typo in documentation #4

@dhd5076

Description

@dhd5076

According to the documentation the function for performing a standard search is nutritionix.search.standard(), but this does not exist as far as I can tell and throws a TypeError
=== UNHANDLED REJECTION === TypeError: nutritionix.search.standard is not a function at [REMOVED]

The actual function is nutritionix.search()

This is under the assumption that nutritionix is initialized as follows:
var NutritionixClient = require('nutritionix'); var nutritionix = new NutritionixClient({ appId: '[REMOVED]', appKey: '[REMOVED]', debug: true });
as stated in the documentation

This can be solved by either changing the code or documentation so they are in agreement on which function is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions