shokuhin-db

1.0.2 • Public • Published

Build Status

概要

食品のカロリー、栄養量を取得するためのライブラリです。 食品名をキーワードに問い合わせをおこない、該当する食品がデータベースにあればそのカロリー・栄養量が返されます。 食品のデーターベースは文部科学省が公開している日本食品標準成分表2015年版のデータを利用しています。

インストール

$ npm install shokuhin-db

利用方法

const shokuhinDb = require('shokuhin-db');

shokuhinDb.getNutrition('メロンパン')
.then(
    function(response){
        console.log(response);
    },
    function(error){
        console.log(error);
    }
);

Readme

Keywords

Package Sidebar

Install

npm i shokuhin-db

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • nkjm