0.10.4 • Published 12 months ago
chess-fetcher v0.10.4
Chess Fetcher
Typescript library for fetching chess games. Handles fetching and ndjson parsing. Returns data in a standard format.
Installation
npm install chess-fetcher
Usage
// Fetch a player's profile (public info, rating, game stats)
player('https://lichess.org/@/DrNykterstein').then((player) => {
console.log(player)
})
// Fetch games of a player or tournament
games('https://lichess.org/@/DrNykterstein', (game) => {
console.log(`${game.players.white.username} vs ${game.players.black.username}`, game.result.label)
}).then(() => console.log('done'))
Demo
npx tsx demo.ts
Development Notes
How to release a new version
npm version 0.x.x
git push origin main --tags
Github workflow will auto publish it to npm.
Linking as a local package
cd chess-fetcher
npm link
cd ../rosen-score
npm uninstall chess-fetcher
npm link chess-fetcher
After making any changes to chess-fetcher
, run npm run build
to update the symlink'ed code for rosen-score
.
0.10.3
12 months ago
0.10.4
12 months ago
0.10.0
1 year ago
0.9.0
1 year ago
0.8.1
1 year ago
0.8.0
1 year ago
0.7.5
1 year ago
0.7.4
2 years ago
0.7.2
2 years ago
0.7.3
2 years ago
0.7.1
2 years ago
0.6.2
2 years ago
0.7.0
2 years ago
0.6.1
2 years ago
0.6.0
2 years ago
0.3.0
2 years ago
0.5.0
2 years ago
0.4.1
2 years ago
0.3.2
2 years ago
0.2.3
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.5.2
2 years ago
0.4.3
2 years ago
0.3.4
2 years ago
0.4.2
2 years ago
0.3.3
2 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago