Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@bryan-hoang/aoc-client
Advanced tools
A TS library for Advent of Code.
It was primarily developed to build the
@bryan-hoang/aoc-cli
command-line tool, but it can also be integrated into other projects.
# ✨ Auto-detect
npx nypm install @bryan-hoang/aoc-client
# npm
npm install @bryan-hoang/aoc-client
# yarn
yarn add @bryan-hoang/aoc-client
# pnpm
pnpm install @bryan-hoang/aoc-client
# bun
bun install @bryan-hoang/aoc-client
# deno
deno install @bryan-hoang/aoc-client
Importing:
ESM (Node.js, Bun, Deno)
import { AocClientBuilder, AocClient } from "@bryan-hoang/aoc-client";
CommonJS (Legacy Node.js)
const { AocClientBuilder, AocClient } = require("@bryan-hoang/aoc-client");
CDN (Deno, Bun and Browsers)
import {
AocClientBuilder,
AocClient,
} from "https://esm.sh/@bryan-hoang/aoc-client";
API:
Method | Type |
---|---|
buildClient | () => AocClient |
Method | Type |
---|---|
#validateBuild | () => asserts this is this and { _sessionCookie: string; _year: number; _day: number; } |
Method | Type |
---|---|
getSessionCookieFromDefaultLocations | () => AocClientBuilder |
Method | Type |
---|---|
getSessionCookieFromFile | (file: string) => AocClientBuilder |
Method | Type |
---|---|
getDefaultSessionCookieFile | () => string |
Method | Type |
---|---|
sessionCookie | (sessionCookie: string) => AocClientBuilder |
Method | Type |
---|---|
year | (year: number) => AocClientBuilder |
Method | Type |
---|---|
day | (day: number) => AocClientBuilder |
Method | Type |
---|---|
latestPuzzleDay | () => AocClientBuilder |
Method | Type |
---|---|
latestEventYear | () => AocClientBuilder |
Method | Type |
---|---|
overwriteFiles | (overwriteFiles: boolean) => AocClientBuilder |
Method | Type |
---|---|
getBuilder | () => AocClientBuilder |
Method | Type |
---|---|
ensureDayUnlocked | () => void |
Method | Type |
---|---|
isDayUnlocked | () => boolean |
PRs accepted.
Small note: if editing the README, please conform to the standard-readme specification.
MIT © 2024 Bryan Hoang
🤖 auto updated with automd
FAQs
An Advent of Code client library
We found that @bryan-hoang/aoc-client demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.