
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
cf-api-wrapper
Advanced tools
cf-api-wrapper is a wrapper for Codeforces API which provides an easy way to use it using Node.js.
npm install cf-api-wrapper
cf-api-wrapper provides functions to access all provided Codeforces API.
To use them, simply call the function along with the parameter(s) as an object after require-ing the wrapper.
Example:
var caw = require('cf-api-wrapper');
caw.user.info({handles: '14L'})
.then(function (result) {
// result is a list of User objects
// do something with it.
});
As you see each function returns a Promise, which later can be handled by using .then, .catch, .error, etc.
Every function has a timeout of 60 seconds, after which it will throw an Promise.TimeoutError error. The timeout is necessary as Codeforces API may not respond with the correct JSON/not responding at all because of several reasons such as the JSON object is too big, or any other reason.
A complete description of the API can be read at Codeforces API help page.
Parameters: contestId (required)
Parameters: gym
Parameters: contestId (required)
Parameters: contestId (required), from, count, handles, room, showUnofficial
Parameters: contestId (required), handle, from, count
Parameters: tags (required)
Parameters: count
Parameters: handles (required)
Parameters: activeOnly
Parameters: handle (required)
Parameters: handle (required), from, count
The tool is currently maintained by Pusaka Kaleb Setyabudi (@sokokaleb).
The tool is licensed under MIT License.
FAQs
Node.js wrapper for Codeforces API.
We found that cf-api-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.