{"id":17350325,"url":"https://github.com/tigercrl/nbt-parser","last_synced_at":"2025-02-26T02:32:45.305Z","repository":{"id":255444233,"uuid":"851075885","full_name":"Tigercrl/nbt-parser","owner":"Tigercrl","description":"Minecraft NBT (NamedBinary Tags) parser for Node.js","archived":false,"fork":false,"pushed_at":"2024-09-04T12:14:53.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T18:47:20.644Z","etag":null,"topics":["minecraft","nbt","nodejs","npm","parser","snbt"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nbt-parser","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tigercrl.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":"2024-09-02T11:32:19.000Z","updated_at":"2024-09-08T12:47:49.000Z","dependencies_parsed_at":"2024-09-05T13:18:40.872Z","dependency_job_id":null,"html_url":"https://github.com/Tigercrl/nbt-parser","commit_stats":null,"previous_names":["tigercrl/nbt-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigercrl%2Fnbt-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigercrl%2Fnbt-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigercrl%2Fnbt-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tigercrl%2Fnbt-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tigercrl","download_url":"https://codeload.github.com/Tigercrl/nbt-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240780895,"owners_count":19856442,"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":["minecraft","nbt","nodejs","npm","parser","snbt"],"created_at":"2024-10-15T17:06:31.186Z","updated_at":"2025-02-26T02:32:45.042Z","avatar_url":"https://github.com/Tigercrl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NBT-Parser\n\nMinecraft NBT (NamedBinary Tags) parser for Node.js\n\n## Supports\n* Java \u0026 Bedrock(Not tested) edition\n* Parsing NBT / SNBT to JSON\n* Dumping JSON to NBT\n\n## Installation\n```\nnpm install nbt-parser\n```\n\n## Usage\n\n```typescript\n// Importing\nconst NBT = require('nbt-parser');\n// or\nimport NBT from \"nbt-parser\";\n\n// Parse NBT\nconst nbt = NBT.parseJSON({ key: \"value\" });\nconst nbt = NBT.parseNBT(new Uint8Array([]), 'java');\nconst nbt = NBT.parseSNBT(\"{key:value}\");\n\n// Dumping NBT\nnbt.toJSON();\nnbt.toJSONString();\nnbt.toNBT('gzip', 'java');\nnbt.toSNBT('formatted');\n\n// Getting tags or payloads\nconst tag = nbt.getRootTag();\n// tag.getTagName(), tag.getTagId() ...\nconst payload = tag.getPayload();\n// payload.getValue(), payload.toSNBTValue(), payload.toUint8Array()...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigercrl%2Fnbt-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftigercrl%2Fnbt-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigercrl%2Fnbt-parser/lists"}