{"id":22938119,"url":"https://github.com/sandy98/pgnparser","last_synced_at":"2025-04-01T19:32:59.680Z","repository":{"id":145865675,"uuid":"87889043","full_name":"sandy98/pgnparser","owner":"sandy98","description":"A simple utility to parse PGN chess files","archived":false,"fork":false,"pushed_at":"2019-12-04T04:47:09.000Z","size":18959,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T12:39:51.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sandy98.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-11T04:40:35.000Z","updated_at":"2020-06-23T05:00:27.000Z","dependencies_parsed_at":"2023-07-23T19:16:36.716Z","dependency_job_id":null,"html_url":"https://github.com/sandy98/pgnparser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy98%2Fpgnparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy98%2Fpgnparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy98%2Fpgnparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy98%2Fpgnparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandy98","download_url":"https://codeload.github.com/sandy98/pgnparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700646,"owners_count":20819910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T12:16:06.061Z","updated_at":"2025-04-01T19:32:59.670Z","avatar_url":"https://github.com/sandy98.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PGNParser\nA simple utility to parse PGN chess files and retrieve the collection of games\nwithin in JSON format.\n\nCould be regarded as a PGN compiler, being JSON the 'object format' produced by the compiler.\n\n### Build\nJust type 'make' and get:\n* pgnparser: executable that reads the provided file (or stdin), from game\n(second arg, defaults to 1) to game (third arg, defaults to 100) and prints\nthe json resulting array to stdout.\n* libpgnparser.so: shared dynamic link library which basically exports 2\nfunctions: game_count(pgn_filename) and parser(pgn_filename, start_game, \nend_game).\n       \n### Usage\nThere are a bunch of files under tests directory which provide example of using\nthe library from python, ruby, node.js (js and coffee-script) and clojure.\nTheir contents is pretty self-explanatory as to how to use them.\n\nIt's also provided the directory 'pgnfiles', containing some pgn files for test purpose, \nand 'jsonfiles' directory, home for files generated using 'make-json.sh' script.\n\n### Comments\nLibrary generated using legendary unix tools 'lex' and 'yacc' (see Makefile),\nwhich in the system they were made map to 'flex' and 'bison' respectively.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandy98%2Fpgnparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandy98%2Fpgnparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandy98%2Fpgnparser/lists"}