{"_id":"@akbenjii/zombs-client-library","_rev":"3-5baad284bd047bf323e8c51c616c441f","name":"@akbenjii/zombs-client-library","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@akbenjii/zombs-client-library","version":"1.0.0","description":"A comprehensive Node.js library for interacting with the zombs.io game server. It provides a high-level API for easily connecting to the server, managing game sessions, and performing various actions in the game.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/akbenjii/zombs-client-library.git"},"keywords":["zombs.io","game","api","nodejs","client"],"author":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/akbenjii/zombs-client-library/issues"},"homepage":"https://github.com/akbenjii/zombs-client-library/#readme","dependencies":{"bytebuffer":"^5.0.1","jsdom":"^22.1.0","winston":"^3.9.0","winston-daily-rotate-file":"^4.7.1","ws":"^8.13.0"},"devDependencies":{},"gitHead":"f34acd2e28f1b1350ea2b2c8609c44369d236816","_id":"@akbenjii/zombs-client-library@1.0.0","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-md3E/3SEsCSr85jqTKftX9PV+bQ6yQnyi7Twr0PPAEf0WFis/u+Bm9IZAItSECf2A+8hY09Rwb+1jcc6RWT4ZA==","shasum":"13b681342ba298c217855f87a1602b7306be67f4","tarball":"https://registry.npmjs.org/@akbenjii/zombs-client-library/-/zombs-client-library-1.0.0.tgz","fileCount":20,"unpackedSize":488290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCahuLquln1BX0u68jVD6Zg66Y19P+XtgsYH5Xx0yAwLgIhAPiZWTNNsJMg27HrQJspsWuiIkFQ+g+swnT63bSNLgvw"}]},"_npmUser":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"directories":{},"maintainers":[{"name":"benjiszn","email":"akbenjiidev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zombs-client-library_1.0.0_1688760081211_0.024793384908328164"},"_hasShrinkwrap":false},"1.0.1":{"name":"@akbenjii/zombs-client-library","version":"1.0.1","description":"A comprehensive Node.js library for interacting with the zombs.io game server. It provides a high-level API for easily connecting to the server, managing game sessions, and performing various actions in the game.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/akbenjii/zombs-client-library.git"},"keywords":["zombs.io","game","api","nodejs","client"],"author":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/akbenjii/zombs-client-library/issues"},"homepage":"https://github.com/akbenjii/zombs-client-library/#readme","dependencies":{"bytebuffer":"^5.0.1","jsdom":"^22.1.0","winston":"^3.9.0","winston-daily-rotate-file":"^4.7.1","ws":"^8.13.0"},"devDependencies":{},"gitHead":"aaa604f13f4775861602c37c075f1d5b38e5cd19","_id":"@akbenjii/zombs-client-library@1.0.1","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-J5noEfWkH52mLB9kimktNkQ013RBeO3P3Y3pKd7ibmxykRUFy6APdNlJREjr/xLlyBJjMDMiGnsSzh2f2ccDMQ==","shasum":"2c0d7769d90533709e7fe17311b9d32a1ad586e1","tarball":"https://registry.npmjs.org/@akbenjii/zombs-client-library/-/zombs-client-library-1.0.1.tgz","fileCount":20,"unpackedSize":488272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+srFWmYp/EkOzPeG6yEWAB1jx/fMa3xYjmW7CY1OcWAIgeqXcTWUN+DvJoFJoYSVp58KAaaI15ZD9h9IhQ/8Ruy4="}]},"_npmUser":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"directories":{},"maintainers":[{"name":"benjiszn","email":"akbenjiidev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zombs-client-library_1.0.1_1688760213238_0.2894165757065861"},"_hasShrinkwrap":false},"1.0.2":{"name":"@akbenjii/zombs-client-library","version":"1.0.2","description":"A comprehensive Node.js library for interacting with the zombs.io game server. It provides a high-level API for easily connecting to the server, managing game sessions, and performing various actions in the game.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/akbenjii/zombs-client-library.git"},"keywords":["zombs.io","game","api","nodejs","client"],"author":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/akbenjii/zombs-client-library/issues"},"homepage":"https://github.com/akbenjii/zombs-client-library/#readme","dependencies":{"bytebuffer":"^5.0.1","jsdom":"^22.1.0","winston":"^3.9.0","winston-daily-rotate-file":"^4.7.1","ws":"^8.13.0"},"devDependencies":{},"gitHead":"9532bef78fc4768760c2796217730dc36b24d5ee","_id":"@akbenjii/zombs-client-library@1.0.2","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-tLRNSrDzdBIhFK6JvfoOkPJDeDlqv14h7nV5VD1zprZJafs2aKcYax7IlXGbw4aMEhcWCKmw2Rbk1USzY12x8g==","shasum":"439746c2966260e778009e93ef6b608c32c73c71","tarball":"https://registry.npmjs.org/@akbenjii/zombs-client-library/-/zombs-client-library-1.0.2.tgz","fileCount":20,"unpackedSize":488306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFTUun0wRNroRNJbQWZRjTRQPAoO6wAxmmsnpKwXmZ1YAiBjfjcMtamyeWlLNtkUDCKAZTyY5A1ziLuDQPNeg28WHg=="}]},"_npmUser":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"directories":{},"maintainers":[{"name":"benjiszn","email":"akbenjiidev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zombs-client-library_1.0.2_1688998520604_0.09941714500931487"},"_hasShrinkwrap":false},"1.0.3":{"name":"@akbenjii/zombs-client-library","version":"1.0.3","description":"A comprehensive Node.js library for interacting with the zombs.io game server. It provides a high-level API for easily connecting to the server, managing game sessions, and performing various actions in the game.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/akbenjii/zombs-client-library.git"},"keywords":["zombs.io","game","api","nodejs","client"],"author":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/akbenjii/zombs-client-library/issues"},"homepage":"https://github.com/akbenjii/zombs-client-library/#readme","dependencies":{"bytebuffer":"^5.0.1","jsdom":"^22.1.0","winston":"^3.9.0","winston-daily-rotate-file":"^4.7.1","ws":"^8.13.0"},"devDependencies":{},"gitHead":"a7a5cbdf6c21b744b5b805677739e64fd9c943db","_id":"@akbenjii/zombs-client-library@1.0.3","_nodeVersion":"18.16.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-rh7E+XDYRXaWww1F4P2ZURZmp8rK4VB6k8G1aox3dzs0AAs4TDwrphQhy7grfSf1mHEx8tSmu9/4fNiBcSwuCg==","shasum":"b9dcdc9c5e7e588fe6d3dd7c7894de7f0ff9340e","tarball":"https://registry.npmjs.org/@akbenjii/zombs-client-library/-/zombs-client-library-1.0.3.tgz","fileCount":20,"unpackedSize":488303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyz99xoWksrVd8WE9hoHxj7EXezS+Xfs1TxmZdLvVZqAiAYmh3cAeZAoGTerZK2597uWe5b8aYCFQWFzuM8qEeiAQ=="}]},"_npmUser":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"directories":{},"maintainers":[{"name":"benjiszn","email":"akbenjiidev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zombs-client-library_1.0.3_1689038016342_0.9168523663389228"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-07T20:01:21.155Z","1.0.0":"2023-07-07T20:01:21.482Z","modified":"2023-07-11T01:13:36.857Z","1.0.1":"2023-07-07T20:03:33.589Z","1.0.2":"2023-07-10T14:15:20.819Z","1.0.3":"2023-07-11T01:13:36.650Z"},"maintainers":[{"name":"benjiszn","email":"akbenjiidev@gmail.com"}],"description":"A comprehensive Node.js library for interacting with the zombs.io game server. It provides a high-level API for easily connecting to the server, managing game sessions, and performing various actions in the game.","homepage":"https://github.com/akbenjii/zombs-client-library/#readme","keywords":["zombs.io","game","api","nodejs","client"],"repository":{"type":"git","url":"git+https://github.com/akbenjii/zombs-client-library.git"},"author":{"name":"benjiszn","email":"akbenjiidev@gmail.com"},"bugs":{"url":"https://github.com/akbenjii/zombs-client-library/issues"},"license":"ISC","readme":"# zombs-client-library\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/your-username/zombs-client-library/blob/main/LICENSE)\n\nThe zombs-client-library is a comprehensive Node.js library for building powerful and feature-rich client applications\nfor zombs.io. It offers a comprehensive set of tools, APIs, and utilities to facilitate seamless communication between\nthe game server and the client.\n\n## Features\n\n- Easy connection to the zombs.io game server\n- Simple management for in game sessions\n- Perform various actions in the game\n- Flexible and extensible architecture\n\n## Installation\n\nYou can install the library via npm:\n\n```shell\nnpm install @akbenjii/zombs-client-library\n```\n\n## Usage\n\nTo use the zombs-client-library in your Node.js application, you can import the `ZombsClient` class from the library:\n\n```javascript\nconst { ZombsClient } = require('@akbenjii/zombs-client-library');\n```\n\nOnce you have imported the `ZombsClient` class, you can create a new instance of the client and start using its methods to interact with the zombs.io game server.\n\nHere's a basic example of how to create a `ZombsClient` instance and connect to the game server:\n\n```javascript\nconst { ZombsClient } = require('@akbenjii/zombs-client-library');\n\n// Create a new instance of the client\nconst client = new ZombsClient({\n    username: 'benji',\n    \n    /** OPTIONAL **/\n    \n    /* NONE, DEFAULT, DEBUG, PACKET_ONLY, NO_PACKET, DISABLED */\n    logType: ZombsClient.LOG_TYPE.DEFAULT, \n    \n    /* All proxy types that are supported with websockets can be used, pass \n    their respective agent.  */\n    agent: new HttpProxyAgent('http://168.63.76.32:3128') ||\n           new HttpsProxyAgent('https://your-proxy-server:proxy-port') ||\n           new SocksProxyAgent('socks://your-name%40gmail.com:abcdef12345124@br41.nordvpn.com')\n});\n\n// create asynchronous function\n(async () => {\n    // preload client and wasm\n    await client.preload();\n\n    // Connect to the game server\n    client.network.connect('v2002');\n\n    /** \n     * Handle events and perform actions.\n     * These are done the *EXACT* same way as the browser.\n     */\n\n    client.network.addEnterWorldHandler(() => {\n        console.log('entered world');\n    });\n    \n    client.network.addPingHandler(() => {\n       console.log('received ping packet'); \n    });\n})();\n```\n\nThis is just a basic example, and methods on the `ZombsClient` class can be used interchangeably with web-scripts.","readmeFilename":"README.md"}