Skip to content

Commit

Permalink
#536 Changed example to fix error, some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mliebelt committed May 28, 2024
1 parent 2046546 commit e300cb6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ A code example to read a complete game then looks like:
```javascript
import { parse } from '@mliebelt/pgn-parser'
let game = parse('[White "Me"] [Black "Magnus"] 1. f4 e5 2. g4 Qh4#', {startRule: "game"})
console.log(JSON.stringify(res, null, 2))
==>
JSON.stringify(res, null, 2)
console.log(JSON.stringify(game, null, 2))
```

This leads to the following output:
```json
{
"tags": {
"White": "Me",
Expand Down

0 comments on commit e300cb6

Please sign in to comment.