Skip to content

Commit 69822b2

Browse files
committed
change in active maintenance status
1 parent ae6d2b1 commit 69822b2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
[![Bundle Size](https://img.shields.io/badge/minzip-1.0kB-blue)](https://bundlephobia.com/package/@chess-openings/eco.json)
99
[![GitHub stars](https://img.shields.io/github/stars/JeffML/eco.json.svg?style=social&label=Star)](https://github.com/JeffML/eco.json)
1010

11+
> **Note**: This is the actively maintained continuation of the original `eco.json` project. The original repository ([hayatbiralem/eco.json](https://github.com/hayatbiralem/eco.json)) has been archived and directs users here.
12+
1113
TypeScript utilities for consuming chess opening data from the eco.json data files.
1214

1315
## Features
@@ -36,7 +38,7 @@ const openings = await openingBook();
3638
// Look up an opening by FEN
3739
const opening = findOpening(
3840
openings,
39-
"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1"
41+
"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1",
4042
);
4143

4244
console.log(opening?.name); // "King's Pawn Opening"
@@ -45,7 +47,7 @@ console.log(opening?.moves); // "1. e4"
4547

4648
// Get next and previous positions
4749
const { next, from } = await getFromTos(
48-
"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1"
50+
"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1",
4951
);
5052

5153
console.log(next[0]?.name); // "Sicilian Defense"
@@ -172,7 +174,7 @@ Compatible libraries: chess.js, @chess-pgn/chess-pgn, and others with similar AP
172174
```typescript
173175
// Many moves deep into a game
174176
chess.loadPgn(
175-
"1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 Na5"
177+
"1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 Na5",
176178
);
177179

178180
const result = lookupByMoves(chess, openings, { maxMovesBack: 10 });

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chess-openings/eco.json",
3-
"version": "1.1.1",
3+
"version": "2.0.0",
44
"description": "Read-only utilities for consuming chess opening data from eco.json",
55
"type": "module",
66
"main": "./dist/src/index.js",

0 commit comments

Comments
 (0)