{"name":"prismarine-realms","version":"1.5.0","keywords":["prismarine","realms"],"author":{"name":"Romain Beaumont"},"license":"MIT","_id":"prismarine-realms@1.5.0","maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"homepage":"https://github.com/PrismarineJS/prismarine-realms#readme","bugs":{"url":"https://github.com/PrismarineJS/prismarine-realms/issues"},"dist":{"shasum":"098be7eba42679702e67f0668fb22614326bcea0","tarball":"http://registry-npm.ywwl.com/prismarine-realms/download/prismarine-realms-1.5.0.tgz","fileCount":30,"integrity":"sha512-nsDiZLGQGzdMkKaHWxJJdvfZTAYPMU+BCSCHElJoK9IeO14wrTGTnzw98UaWxgMBSlFiE4BWNefgs/BlTMqBcQ==","signatures":[{"sig":"MEQCIA7zkOwAfXp2DdBQGujROaWoyr3CGgCu21LKwG5UYAqpAiBLp4/Y65QEoRqCdgDucVRFl2IaG4vy5PZCxWDPBFytGw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/prismarine-realms@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":80645,"size":18699,"noattachment":false,"key":"/prismarine-realms/-/prismarine-realms-1.5.0.tgz"},"main":"index.js","types":"./index.d.ts","gitHead":"7981af546590d882f4e862fd4e6b72fe99bbbe4f","scripts":{"fix":"standard --fix","lint":"standard","test":"mocha --recursive --reporter spec --exit","pretest":"npm run lint"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:3bf37da7-2c6d-473c-be9f-013a2ac65636"}},"repository":{"url":"git+https://github.com/PrismarineJS/prismarine-realms.git","type":"git"},"_npmVersion":"11.9.0","description":"Library to manage and interact with Minecraft Realms for Java/Bedrock edition","directories":{},"_nodeVersion":"24.14.0","dependencies":{"debug":"^4.3.3","node-fetch":"^2.6.1"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","nock":"^14.0.11","mocha":"^11.0.1","standard":"^17.0.0","prismarine-auth":"^2.7.0","chai-as-promised":"^7.1.1","prismarine-realms":"file:."},"_npmOperationalInternal":{"tmp":"tmp/prismarine-realms_1.5.0_1774833484565_0.4130132994727471","host":"s3://npm-registry-packages-npm-production"},"readme":"# prismarine-realms\n[![NPM version](https://img.shields.io/npm/v/prismarine-realms.svg)](http://npmjs.com/package/prismarine-realms)\n[![Build Status](https://github.com/PrismarineJS/prismarine-realms/workflows/CI/badge.svg)](https://github.com/PrismarineJS/prismarine-realms/actions?query=workflow%3A%22CI%22)\n[![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)\n[![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/prismarine-realms)\n\nMinecraft Realm interface for Minecraft Java and Bedrock editions, providing a stable API to start/stop Realms, and obtain Realm information such as connection addresses.\n\nMinecraft Realms is a subscription based service provided by Mojang where users can host, create and manage their own private Minecraft servers.\n\n## Installation\n```shell\nnpm install prismarine-realms\n```\n\n## Usage\n\n### RealmAPI\n\n#### .from(authflow: Authflow, platform: 'bedrock' | 'java', options: Options)\n\nTakes an **Authflow** instance from [prismarine-auth](https://github.com/PrismarineJS/prismarine-auth), you can see the documentation for this [here.](https://github.com/PrismarineJS/prismarine-auth#authflow)\n\n### Example\n\n```js\nconst { Authflow } = require('prismarine-auth') \nconst { RealmAPI } = require('prismarine-realms')\n\nconst authflow = new Authflow()\n\nconst api = RealmAPI.from(authflow, 'bedrock') // or 'java'\n\n// Returns a list of Realms the authenticating account has joined or owns.\nawait api.getRealms().then(console.log)\n```\n\n## Documentation\n\nSee [API Documentation](./docs/API.md#realmsapi)","publish_time":1774833484724,"_cnpm_publish_time":1774833484724,"dist-tags":{"latest":"1.6.0"}}