heptacode / military-letter

Unofficial library to send letters to ROK Armed Forces Training Center ๐Ÿช–

Home Page:https://www.npmjs.com/package/@heptacode/military-letter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Military Letter

์†Œ๊ฐœ

Unofficial library to send letters to ROK Armed Forces Training Center

๋น„๊ณต์‹ ๊ตญ๊ตฐํ›ˆ๋ จ์†Œ ์ธํ„ฐ๋„ท ํŽธ์ง€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

์•Œ๋ฆผ

ํ˜„์žฌ ์ง€์›๋˜๋Š” ๊ตฐ์ข…์€ ์œก๊ตฐ(๋”์บ ํ”„), ๊ณต๊ตฐ์ž…๋‹ˆ๋‹ค. ์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•จ์œผ๋กœ์จ ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ์— ๋Œ€ํ•œ ์ฑ…์ž„์€ ์‚ฌ์šฉ์ž์—๊ฒŒ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ธฐ์ˆ  ์Šคํƒ

TypeScript Yarn Berry ESBuild Jest

์‚ฌ์šฉํ•˜๊ธฐ

  • $ yarn add @heptacode/military-letter
  • examples ํด๋”์˜ ์˜ˆ์‹œ๋“ค์„ ํ™•์ธํ•ด์ฃผ์„ธ์š”.
  • ๋ณ„๋„์˜ ์„ค์ • ์—†์ด ๋‰ด์Šค ๋ณด๋‚ด๊ธฐ ๊ธฐ๋Šฅ๋งŒ ์ด์šฉํ•˜๋ ค๋ฉด ์ด Repository๋ฅผ Forkํ•œ ํ›„ trainees.example.ts ํŒŒ์ผ์„ ์ฐธ๊ณ ํ•˜์—ฌ trainees.ts ํŒŒ์ผ์„ examples ํด๋”์— ์ƒ์„ฑํ•ด์ฃผ์„ธ์š”.
  • ์„ฑ๋ช…, ์ƒ๋…„์›”์ผ, ์ž…๋Œ€์ผ์ž๊ฐ€ ์˜ฌ๋ฐ”๋ฅด์ง€ ์•Š์œผ๋ฉด ์ •์ƒ์ ์œผ๋กœ ์ „๋‹ฌ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

trainees.ts ์„ค์ •ํ•˜๊ธฐ

examples/trainees.example.ts๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”.

ํ‚ค ํƒ€์ž… ์„ค๋ช… ๊ธฐ๋ณธ๊ฐ’
name string ํ›ˆ๋ จ๋ณ‘ ์„ฑ๋ช… ํ•„์ˆ˜ ์ž…๋ ฅ ์‚ฌํ•ญ
type TraineeType ๊ตฐ์ข…(์œก๊ตฐ/๊ณต๊ตฐ) '์œก๊ตฐ'
unit TraineeUnit ์ž…์˜๋ถ€๋Œ€(์œก๊ตฐ๋งŒ ์ž…๋ ฅ) '์œก๊ตฐํ›ˆ๋ จ์†Œ'
birthDate string ์ƒ๋…„์›”์ผ ํ•„์ˆ˜ ์ž…๋ ฅ ์‚ฌํ•ญ
enterDate string ์ž…์˜์ผ ํ•„์ˆ˜ ์ž…๋ ฅ ์‚ฌํ•ญ
startDate string ์‹œ์ž‘์ผ(์ž…์˜์ผ ์ดํ›„๋กœ ์ž์œ ๋กญ๊ฒŒ ์ง€์ •) ํ•„์ˆ˜ ์ž…๋ ฅ ์‚ฌํ•ญ
endDate string ์ข…๋ฃŒ์ผ(์ˆ˜๋ฃŒ์ผ๊ณผ ๊ด€๊ณ„์—†์ด ์ž์œ ๋กญ๊ฒŒ ์ง€์ •) ํ•„์ˆ˜ ์ž…๋ ฅ ์‚ฌํ•ญ
exclude boolean ๋Œ€์ƒ ์ œ์™ธ ์—ฌ๋ถ€ false
// examples/trainees.ts
import { Trainee, TraineeType } from '@heptacode/military-letter';

export const trainees: Trainee[] = [
  {
    name: '๊น€์œก๊ตฐ',
    unit: '55์‚ฌ๋‹จ', // ๊ธฐ๋ณธ: '์œก๊ตฐํ›ˆ๋ จ์†Œ'
    birthDate: '2000-01-01',
    enterDate: '2022-01-01',
    startDate: '2022-01-01',
    endDate: '2022-02-01',
    exclude: true,
  },
  {
    name: '๊น€๊ณต๊ตฐ',
    type: '๊ณต๊ตฐ', // ๊ธฐ๋ณธ: '์œก๊ตฐ'
    birthDate: '2000-01-01',
    enterDate: '2022-01-01',
    startDate: '2022-01-01',
    endDate: '2022-02-01',
  },
];

About

Unofficial library to send letters to ROK Armed Forces Training Center ๐Ÿช–

https://www.npmjs.com/package/@heptacode/military-letter

License:MIT License


Languages

Language:TypeScript 86.6%Language:JavaScript 11.5%Language:Shell 1.9%