{"id":23163047,"url":"https://github.com/mistereo/sgfjs","last_synced_at":"2025-04-04T20:35:54.416Z","repository":{"id":57141511,"uuid":"45045688","full_name":"Mistereo/sgfjs","owner":"Mistereo","description":"Simple SGF parser written in JavaScript.","archived":false,"fork":false,"pushed_at":"2015-10-30T20:26:51.000Z","size":87,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T04:37:15.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Mistereo.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}},"created_at":"2015-10-27T14:15:24.000Z","updated_at":"2024-09-25T18:05:21.000Z","dependencies_parsed_at":"2022-09-05T01:30:35.291Z","dependency_job_id":null,"html_url":"https://github.com/Mistereo/sgfjs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistereo%2Fsgfjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistereo%2Fsgfjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistereo%2Fsgfjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistereo%2Fsgfjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mistereo","download_url":"https://codeload.github.com/Mistereo/sgfjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249028,"owners_count":20908202,"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-18T00:15:49.862Z","updated_at":"2025-04-04T20:35:54.392Z","avatar_url":"https://github.com/Mistereo.png","language":"JavaScript","readme":"# SGF parser\n\nSimple [SGF](https://en.wikipedia.org/wiki/Smart_Game_Format) parser for node and browser.\n\n## Usage\n\n```javascript\nvar SGF = require('sgfjs');\n\nvar parsed = SGF.parse('your sgf here');\n```\n\nFor the following sgf:\n\n```\n(;FF[4]GM[1]SZ[19];B[aa];W[bb]\n  (;B[cc]N[Var A];W[dd])\n  (;B[gg]N[Var C];W[gh];B[hh]))\n```\n\nResulting object will be:\n\n```javascript\n{\n  props: {\n    FF: \"4\",\n    GM: \"1\",\n    SZ: \"19\"\n  },\n  childs: [{\n    props: {\n      B: \"aa\"\n    },\n    childs: [{\n      props: {\n        W: \"bb\"\n      },\n      childs: [{\n        props: {\n          B: \"cc\",\n          N: \"Var A\"\n        },\n        childs: [{\n          props: {\n            W: \"dd\"\n          },\n          childs: []\n        }]\n      }, {\n        props: {\n          B: \"gg\",\n          N: \"Var C\"\n        },\n        childs: [{\n          props: {\n            W: \"gh\"\n          },\n          childs: [{\n            props: {\n              B: \"hh\"\n            },\n            childs: []\n          }]\n        }]\n      }]\n    }]\n  }]\n}\n```\n\n## License\n\nThe MIT License (MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistereo%2Fsgfjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmistereo%2Fsgfjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistereo%2Fsgfjs/lists"}