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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ocote

v1.0.3

Published

A CLI tool to automate setting up Baekjoon online judge problems.

Readme

ocote

npm version

백준 온라인 저지(BOJ) 문제 풀이 환경을 자동으로 설정해주는 CLI 도구입니다. ocote를 사용하면 문제 번호만으로 보일러플레이트 코드, 테스트 파일, 예제 입출력 파일을 한번에 생성하여 즉시 문제 풀이에 집중할 수 있습니다.

주요 기능

  • 문제 정보 크롤링: 백준 웹사이트에서 문제의 예제 입력과 출력을 자동으로 가져옵니다.
  • 개발 환경 자동 생성: 문제 풀이에 필요한 solution.js, test.js, inputs.txt, outputs.txt 파일을 생성합니다.
  • 내장 테스트 실행기: 작성한 코드를 즉시 실행하고 테스트할 수 있는 환경을 제공합니다.

사용법

별도의 설치 과정 없이 npx를 통해 바로 사용할 수 있습니다.

npx ocote <command>

명령어 (Commands)

ocote setup <problem-number>

문제 풀이에 필요한 모든 환경을 설정합니다.

인자:

  • <problem-number>: 설정하려는 백준 문제의 번호입니다. (필수)

예시:

npx ocote setup 1001

위 명령어를 실행하면, 현재 디렉토리에 다음과 같은 구조의 1001 폴더가 생성됩니다.

/1001
├── inputs.txt     # 예제 입력
├── outputs.txt    # 예제 출력
├── solution.js    # 풀이 코드를 작성할 파일
└── test.js        # 작성한 코드를 테스트하는 파일

ocote run <problem-number>

작성한 솔루션 코드를 실행하여 결과를 확인합니다.

인자:

  • <problem-number>: 실행하려는 문제의 번호입니다. (필수)

예시:

npx ocote run 1001

이 명령어는 1001/solution.js 파일의 main 함수를 실행합니다.

문제 풀이 워크플로우

  1. 원하는 위치에서 setup 명령어를 실행하여 문제 환경을 생성합니다.

    npx ocote setup 24042
  2. 생성된 24042/solution.js 파일에 문제 풀이 로직을 작성합니다.

  3. 작성한 코드를 테스트합니다. test.js를 직접 실행하여 정답 여부를 확인할 수 있습니다.

    node 24042/test.js
  4. 또는 run 명령어로 main 함수를 실행하여 결과를 볼 수 있습니다.

    npx ocote run 24042
  5. 테스트를 통과했다면 solution.js의 코드를 백준에 제출합니다.

라이선스 (License)

ISC