{"name":"prismarine-realms","version":"1.4.1","keywords":["prismarine","realms"],"author":{"name":"Romain Beaumont"},"license":"MIT","_id":"prismarine-realms@1.4.1","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":"038bdbd246348ca6817a927dd175de67714d9a11","tarball":"http://registry-npm.ywwl.com/prismarine-realms/download/prismarine-realms-1.4.1.tgz","fileCount":29,"integrity":"sha512-WmElIrwN4H/f0460HPnNYRJkRMVNjAmnZUOkZC+tn2Hg2IOsxRlHH5yJ/E2go1hEeFj+NlcYrGDOOhldSXnxSA==","signatures":[{"sig":"MEUCIA3z2k8VYOnBlX0k9MJsaJYn1YG8+/ekVKIzynrO3ViWAiEAxTtWR9pE/X5Qil01JFsoelARRIMPSzUp4MxCa60Zywk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76771,"size":17773,"noattachment":false,"key":"/prismarine-realms/-/prismarine-realms-1.4.1.tgz"},"main":"index.js","gitHead":"6373702e4164d0d7d6a0c5d901c547ad3a06cb5e","scripts":{"fix":"standard --fix","lint":"standard","test":"mocha --recursive --reporter spec --exit","pretest":"npm run lint"},"_npmUser":{"name":"rom1504","email":"romain.rom1@gmail.com"},"repository":{"url":"git+https://github.com/PrismarineJS/prismarine-realms.git","type":"git"},"_npmVersion":"6.14.4","description":"Library to manage and interact with Minecraft Realms for Java/Bedrock edition","directories":{},"_nodeVersion":"14.0.0","dependencies":{"debug":"^4.3.3","node-fetch":"^2.6.1"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","nock":"^13.2.4","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.4.1_1766357506296_0.6393564165151888","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":1766357506417,"_cnpm_publish_time":1766357506417,"dist-tags":{"latest":"1.6.0"}}