1.0.2 • Published 7 years ago

shokuhin-db v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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);
    }
);
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago