Selfcheck (Deno) - 자가진단 자동화
How To Use
- https://deno.land/ 에서 Deno 설치
- 예제 실행
Basic Usage
import selfcheck from 'https://deno.land/x/selfcheck/mod.ts';
console.log(
await selfcheck({
name: '실명',
birthday: '생일',
school: '학교',
area: '지역',
password: '비밀번호',
})
);
Cron Usage (매일 아침 7시에 실행)
import selfcheck from 'https://deno.land/x/selfcheck/mod.ts';
import { cron } from 'https://deno.land/x/deno_cron/cron.ts';
cron('0 7 * * *', async () => {
console.log(
await selfcheck({
name: '실명',
birthday: '생일',
school: '학교',
area: '지역',
password: '비밀번호',
})
);
});
Documents
export interface User {
name: string;
school: string;
area: string;
birthday: string;
password: string;
}
type SelfcheckResult = {
registerDtm: string;
inveYmd: string;
};
function selfcheck(user: User): Promise<SelfcheckResult>;
function validate(user: User): Promise<boolean>;