npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

megastudy-letter

v1.1.0

Published

메가스터디 학부모편지(부모님편지) 서비스 리버스 엔지니어링 라이브러리/CLI

Readme

megastudy-letter.js

메가스터디 학부모편지(부모님편지) 서비스를 자동화하는 Node.js용 라이브러리/CLI입니다.

지원 기능:

  • 메가스터디 계정 로그인(ID/비번)
  • 부모님편지 게시판 목록 조회
  • 부모님편지 작성/게시

기본 대상은 seochob.megastudy.net 이지만, 지점별로 *.megastudy.net 형태로 호스트만 바꾸면 동작하도록 설계했습니다.

설치

npm install megastudy-letter

라이브러리 사용법

import MegastudyLetterClient from 'megastudy-letter';

const client = new MegastudyLetterClient({ host: 'seochob.megastudy.net' });

await client.login({ userId: '아이디', password: '비밀번호' });

// 게시판 목록 조회 (전체글/내글)
const all = await client.listParentLetters({ listMode: 'Y', page: 1 });
const mine = await client.listParentLetters({ listMode: 'N', page: 1 });

// 반(담임) 목록 조회 (글쓰기 폼의 sclass 옵션)
const classes = await client.getClassList();

// 편지 작성/게시
await client.postParentLetter({
  receiver: '학생 이름',
  classId: classes[0]?.value ?? '1484',
  writer: '보내는 사람 이름',
  relation: '관계(예: 부/모/본인)',
  title: '제목',
  content: '내용',
});

CLI 사용법

# 로그인 확인
megastudy-letter login --host seochob.megastudy.net --userid <id> --passwd <pw>

# 게시판 목록 조회
megastudy-letter list --host seochob.megastudy.net --userid <id> --passwd <pw> --mode all --page 1
megastudy-letter list --host seochob.megastudy.net --userid <id> --passwd <pw> --mode mine --page 1 --json

# 반 목록 조회
megastudy-letter classes --host seochob.megastudy.net --userid <id> --passwd <pw>

# 편지 게시
megastudy-letter post --host seochob.megastudy.net --userid <id> --passwd <pw> --class 1484 --title "제목" --content-file ./newsletter.txt

환경변수로도 지정할 수 있습니다:

  • MEGASTUDY_USERID
  • MEGASTUDY_PASSWD

개발

npm install
npm run build
npm run dev
npm run lint
npm run format
npm run clean

License

MIT