New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

army-meal

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

army-meal

이 모듈은 https://openapi.mnd.go.kr 의 급식 api를 더욱 편하게 사용할 수 있도록 하는 모듈입니다. api key와 부대 번호, 메뉴를 알고 싶은 날짜만 입력하면 급식 메뉴를 간편하게 구할 수 있습니다.

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
7
250%
Maintainers
1
Weekly downloads
 
Created
Source

Army-meal 국방부 군대 급식 API 모듈

이 모듈은 https://openapi.mnd.go.kr 의 급식 api를 더욱 편하게 사용할 수 있도록 하는 모듈입니다. api key와 부대 번호, 메뉴를 알고 싶은 날짜만 입력하면 급식 메뉴를 간편하게 구할 수 있습니다.

부대 번호는 https://opendata.mnd.go.kr/openinf/dataset/datasetlist2.jsp 에서 찾을 수 있습니다.

사용법

import { ArmyMeal } from 'army-meal';

// commonjs
const { ArmyMeal } = require('army-meal')

async function request() {
  const meal = new ArmyMeal(
    [API KEY]
  )

  console.dir(await meal.getMenusOfDay(9030, 2022, 9, 12))
  console.dir(await meal.getMenusOfMonth(9030, 2022, 9))
}

request()

getMenusOfDay(numberOfLSG, year, month, day)

numberOfLSG번 부대의 year년 month월 day일 메뉴를 반환합니다.

numberOfLSG - 급양대의 부대 번호 ex) 육군훈련소: 9547
year - 연도
month - 월
day - 일

getMenusOfMonth(numberOfLSG, year, month)

Dependency

axios: API 서버로 급식 메뉴를 요청하기 위해 사용하는 http client입니다.

Keywords

example

FAQs

Package last updated on 16 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts