{"_id":"@123ishatest/lands-unknown-com-client","_rev":"2-5f5ab442222ba59e6cbfa49a68185e7e","name":"@123ishatest/lands-unknown-com-client","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.0":{"name":"@123ishatest/lands-unknown-com-client","version":"0.0.0","description":"A TypeScript client to integrate with the lands-unknown server into your (my) games!","homepage":"https://github.com/123ishaTest/lands-unknown-com-client","bugs":{"url":"https://github.com/123ishaTest/lands-unknown-com-client/issues","email":"ishadijcks@gmail.com"},"author":{"name":"Isha"},"license":"MIT","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"vite","build":"tsc && vite build","release":"npm run build && npx changeset publish","preview":"vite preview","lint":"prettier --check .","format":"prettier --write .","test":"vitest"},"dependencies":{"axios":"^1.6.7"},"devDependencies":{"@changesets/changelog-github":"^0.5.0","@changesets/cli":"^2.27.1","@types/node":"^20.11.19","prettier":"^3.2.5","typescript":"^5.2.2","vite":"^5.1.0","vite-plugin-dts":"^3.7.2","vite-tsconfig-paths":"^4.3.1","vitest":"^1.3.0"},"_id":"@123ishatest/lands-unknown-com-client@0.0.0","gitHead":"257cca67cd63b1119c1f70a2feac9e8b66e0057c","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-p2Nvih9H2FIIVQTY9PKR/rfoRGyWI6FQ/nCZh9BMXSACIPJGJtCWYM7xcQGcSe0cJB5/fAb5z0TrcF9768DLPA==","shasum":"6fe0dbe40b2913491fa5214f697e57817eeac76b","tarball":"https://registry.npmjs.org/@123ishatest/lands-unknown-com-client/-/lands-unknown-com-client-0.0.0.tgz","fileCount":4,"unpackedSize":6453,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQJt0pFkooXPpcyupdzVIQ2dbg+jTa4E3levv0AegeSQIhAIrfcufwyyE4tpOYAQX8SzfPrGn+gzgi2YHczbbcZQgh"}]},"_npmUser":{"name":"ishad","email":"ishadijcks@gmail.com"},"directories":{},"maintainers":[{"name":"ishad","email":"ishadijcks@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lands-unknown-com-client_0.0.0_1708878351346_0.3645705545804452"},"_hasShrinkwrap":false},"0.1.0":{"name":"@123ishatest/lands-unknown-com-client","version":"0.1.0","description":"A TypeScript client to integrate with the lands-unknown server into your (my) games!","homepage":"https://github.com/123ishaTest/lands-unknown-com-client","bugs":{"url":"https://github.com/123ishaTest/lands-unknown-com-client/issues","email":"ishadijcks@gmail.com"},"author":{"name":"Isha"},"license":"MIT","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"vite","build":"tsc && vite build","release":"npm run build && npx changeset publish","preview":"vite preview","lint":"prettier --check .","format":"prettier --write .","test":"vitest"},"dependencies":{"axios":"^1.6.7"},"devDependencies":{"@changesets/changelog-github":"^0.5.0","@changesets/cli":"^2.27.1","@types/node":"^20.11.19","prettier":"^3.2.5","typescript":"^5.2.2","vite":"^5.1.0","vite-plugin-dts":"^3.7.2","vite-tsconfig-paths":"^4.3.1","vitest":"^1.3.0"},"_id":"@123ishatest/lands-unknown-com-client@0.1.0","gitHead":"9ee994110fa0df741762a93cbe41d5082d73b979","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-zh1aL1Bj2VJ+qconKe0SZ0L5z9vwOL1m4QLXcoFxEZvNUPutjHgWxRWL4dW0SGnwCa2HYjvM4oWaIDWy5fG3yg==","shasum":"a736f3c5cc0b64272cebf47df15630e9d38d6006","tarball":"https://registry.npmjs.org/@123ishatest/lands-unknown-com-client/-/lands-unknown-com-client-0.1.0.tgz","fileCount":4,"unpackedSize":7234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDazceAWBdYNSbBzHr3XaO7oY/Il3NyqniL49Bd7dIwvAIhAJsEgD8tvLhfuKG9S0S+gzozPAwng3HRHNlyD5SctZ9g"}]},"_npmUser":{"name":"ishad","email":"ishadijcks@gmail.com"},"directories":{},"maintainers":[{"name":"ishad","email":"ishadijcks@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lands-unknown-com-client_0.1.0_1709333165854_0.5049770404845935"},"_hasShrinkwrap":false},"0.2.0":{"name":"@123ishatest/lands-unknown-com-client","version":"0.2.0","description":"A TypeScript client to integrate with the lands-unknown server into your (my) games!","homepage":"https://github.com/123ishaTest/lands-unknown-com-client","bugs":{"url":"https://github.com/123ishaTest/lands-unknown-com-client/issues","email":"ishadijcks@gmail.com"},"author":{"name":"Isha"},"license":"MIT","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"dev":"vite","build":"tsc && vite build","release":"npm run build && npx changeset publish","preview":"vite preview","lint":"prettier --check .","format":"prettier --write .","test":"vitest"},"dependencies":{"axios":"^1.6.7"},"devDependencies":{"@changesets/changelog-github":"^0.5.0","@changesets/cli":"^2.27.1","@types/node":"^20.11.19","prettier":"^3.2.5","typescript":"^5.2.2","vite":"^5.1.0","vite-plugin-dts":"^3.7.2","vite-tsconfig-paths":"^4.3.1","vitest":"^1.3.0"},"_id":"@123ishatest/lands-unknown-com-client@0.2.0","gitHead":"b1d50313f02d6c4863332e06eb4925ec0c7b4c89","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-koyFmT15dQDpMf7O17U6r4zqbPBHQAa/BV65JbDPSEDI4odDNyTWjFmp5bbPenUAKUu8qTe4z8g+awc8XXm3Iw==","shasum":"5c0d0fd7a9e24fcc95762909d58763c43ce2804d","tarball":"https://registry.npmjs.org/@123ishatest/lands-unknown-com-client/-/lands-unknown-com-client-0.2.0.tgz","fileCount":4,"unpackedSize":6813,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKTPXQ4qb0SyBlao9V2PUPO31/YD1ftVepg8C2ssK99QIgVSWAieNLwyZlUmm38dl6qpgGD3UzGu2X4mqZfE/HLbA="}]},"_npmUser":{"name":"ishad","email":"ishadijcks@gmail.com"},"directories":{},"maintainers":[{"name":"ishad","email":"ishadijcks@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lands-unknown-com-client_0.2.0_1709334896482_0.0721203297464279"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-25T16:25:51.231Z","0.0.0":"2024-02-25T16:25:51.507Z","modified":"2024-03-01T23:14:57.105Z","0.1.0":"2024-03-01T22:46:06.008Z","0.2.0":"2024-03-01T23:14:56.632Z"},"maintainers":[{"name":"ishad","email":"ishadijcks@gmail.com"}],"description":"A TypeScript client to integrate with the lands-unknown server into your (my) games!","homepage":"https://github.com/123ishaTest/lands-unknown-com-client","author":{"name":"Isha"},"bugs":{"url":"https://github.com/123ishaTest/lands-unknown-com-client/issues","email":"ishadijcks@gmail.com"},"license":"MIT","readme":"# Lands Unknown Client\n\n> A TypeScript client to integrate with the lands-unknown server into your (my) games!\n\n## Usage\n\n```bash\nnpm install @123ishatest/lands-unknown-com-client\n```\n\n```ts\nimport { LuClient } from '@/LuClient.ts';\nimport { UserToken } from '@/model/UserToken.ts';\nimport { Info } from '@/model/Info.ts';\n\nconst baseUrl = 'https://lands-unknown.com/api';\nconst gameId = '1eed8153-30c5-60e2-a1a1-05ba7dc241ce';\n\n// Create a client for this specific game\nconst client = new LuClient(baseUrl, gameId);\n\n// Login the user, store the token locally to avoid having to log in again\nconst userToken: UserToken = await client.login('Isha', 'Password');\n\n// Get all information for this user and game\nconst info: Info = await client.getInfo();\n\n// Gain an achievement\nawait client.gainAchievement('achievement-slug');\n```\n\n### Create from a GitHub template\n\nAdd the [top of this page on GitHub](https://github.com/123ishaTest/ts-library-template) there should be a large green button that says `Use This Template`.\nClick that to use this template!\n","readmeFilename":"README.md"}