Skip to content

un-oj/core

Repository files navigation

UnOJ

JSR

Unified information collector of online competitive programming platforms.

Usage

Install un-oj from NPM, or @un-oj/core from JSR.

import Codeforces from '@un-oj/core/platforms/codeforces'; // If installed from JSR
// import Codeforces from 'un-oj/platforms/codeforces'; // If installed from NPM

const cf = new Codeforces();
console.log(await cf.getProblem('1A'));

Currently supported platforms:

Documents are available on JSR.

Compataility

UnOJ uses internal APIs, or parses HTML from some OJ, which may be changed at any time. If you encountered any problems, feel free to open an issue.

Acknowledgements