{"name":"prismarine-realms","version":"1.6.0","description":"Library to manage and interact with Minecraft Realms for Java/Bedrock edition","main":"index.js","scripts":{"test":"mocha --recursive --reporter spec --exit","pretest":"npm run lint","lint":"standard","fix":"standard --fix"},"repository":{"type":"git","url":"git+https://github.com/PrismarineJS/prismarine-realms.git"},"keywords":["prismarine","realms"],"author":{"name":"Romain Beaumont"},"license":"MIT","bugs":{"url":"https://github.com/PrismarineJS/prismarine-realms/issues"},"homepage":"https://github.com/PrismarineJS/prismarine-realms#readme","devDependencies":{"chai":"^4.3.6","chai-as-promised":"^7.1.1","mocha":"^11.0.1","nock":"^14.0.11","prismarine-auth":"^2.7.0","prismarine-realms":"file:.","standard":"^17.0.0"},"dependencies":{"debug":"^4.3.3","node-fetch":"^2.6.1"},"gitHead":"39787ccf0109e0135c8968b0d0e81f4ebbeac200","types":"./index.d.ts","_id":"prismarine-realms@1.6.0","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-AwemW0vwxG9hQaFtg1twSV7eymB6QtYxGK0jjpxfdA2sdK15kU8jh8uD1o5XF0oxSMU+BbpzZMCmXtXq4QE6bw==","shasum":"9b9d42dd5a27fe16111b95cd159c5fd1d3c889d7","tarball":"http://registry-npm.ywwl.com/prismarine-realms/download/prismarine-realms-1.6.0.tgz","fileCount":30,"unpackedSize":81078,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/prismarine-realms@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID8vwIwMmSo/G44KCYvLo5BNJahgWudQKvIKx+rV47gWAiEAs3yWgzG63qYg/Kms1aZr5Bf/+IgKQgbpfZBrtbz/uV8="}],"size":18833,"noattachment":false,"key":"/prismarine-realms/-/prismarine-realms-1.6.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:3bf37da7-2c6d-473c-be9f-013a2ac65636"}},"directories":{},"maintainers":[{"name":"rom1504","email":"romain.rom1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prismarine-realms_1.6.0_1776159362626_0.6782833837945053"},"_hasShrinkwrap":false,"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":1776159362798,"_cnpm_publish_time":1776159362798,"dist-tags":{"latest":"1.6.0"}}