1.2.0 • Published 4 years ago

dgsw-meal v1.2.0

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

dgsw-meal

Daegu Software High School meal Parsing Library for node.js

npm.io License: MIT npm version

Table of Contents

  • Installation
  • Usage Example
  • Licence

Installation

you can install to use npm or yarn

npm install dgsw-meal
yarn install dgsw-meal

Usage Example

getMeal(year, month)

parametertyperequireddescription
yearnumbertruethe year to search
monthnumbertruethe month to search from 1 to 12
  • example
const dgswMeal = require('dgsw-meal'); // es5
import * as dgswMeal from 'dgsw-meal'; // es6

dgswMeal.getMeal(2020, 5).then(console.log);
/** console
  {
    "year": number,
    "month": number,
    "currentDay": number,
    "meal": {
      "1": string, // 1st menu
      "2": string,
      ...
      "31": "[조식]...[중식]...[석식]...",
    },
    "today": string,
  }
*/

Licence

MIT

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago