@echecs/pgn
Version:
PGN is a parser that is part of the ECHECS project, designed to interpret the PGN (Portable Game Notation) specification.
63 lines • 2.15 kB
JSON
{
"author": "Adrian de la Rosa <adrian@delarosab.me>",
"dependencies": {
"moo": "^0.5.2",
"nearley": "^2.20.1"
},
"description": "PGN is a parser that is part of the ECHECS project, designed to interpret the PGN (Portable Game Notation) specification.",
"devDependencies": {
"@eslint/js": "^9.21.0",
"@mliebelt/pgn-parser": "^1.4.15",
"@types/moo": "^0.5.10",
"@types/nearley": "^2.11.5",
"@types/node": "^22.13.5",
"@typescript-eslint/parser": "^8.24.1",
"@vitest/coverage-v8": "^3.0.6",
"eslint": "^9.21.0",
"eslint-config-prettier": "^10.0.1",
"eslint-import-resolver-typescript": "^4.1.1",
"eslint-plugin-import-x": "^4.6.1",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"prettier": "^3.5.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.24.1",
"vitest": "^3.0.6"
},
"files": [
"/dist/",
"LICENSE",
"README.md"
],
"keywords": [
"chess",
"fide",
"parser",
"pgn"
],
"license": "MIT",
"main": "dist/index.js",
"name": "@echecs/pgn",
"repository": "mormubis/pgn",
"type": "module",
"types": "dist/index.d.ts",
"version": "3.1.3",
"scripts": {
"bench": "vitest bench --run",
"build": "pnpm run build:grammar && pnpm run build:entry",
"build:grammar": "pnpm run grammar:compile",
"build:entry": "tsc --project tsconfig.build.json",
"format": "pnpm run format:ci --write",
"format:ci": "prettier --ignore-unknown --list-different \"**/*\"",
"grammar:compile": "nearleyc src/grammar.ne -o src/grammar.cjs",
"grammar:diagram": "nearley-railroad src/grammar.ne -o diagram.html",
"grammar:test": "pnpm grammar:compile && nearley-test -s DATABASE src/grammar.cjs < ./test.pgn",
"lint": "pnpm run lint:style && pnpm run lint:types",
"lint:ci": "pnpm run lint:style --max-warnings 0 && pnpm run lint:types",
"lint:style": "eslint \"src/**/*.{ts,tsx}\" --fix",
"lint:types": "tsc --noEmit --project tsconfig.json",
"test": "pnpm grammar:compile && vitest run",
"test:coverage": "pnpm run test --coverage",
"test:watch": "pnpm run test --watch"
}
}