Package Exports
- hostmyservers.js
- hostmyservers.js/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hostmyservers.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
π¦ A modern module for HostMyServers API, streamlining interactions with users, products, and VPS.
Features
- See and manage your user details π¨βπ»
- See and manage your products π¦
- Soon: See and manage your VPS π₯οΈ
Get my API key π·
You can get a free API key of your profile on HMS website!
Documentation π
You can access to the documentation on the "wiki" part of the GitHub or by clicking to this link!
Example π‘
- First of all, don't forget to install the module!
npm install hostmyservers.js@latest
- Enjoy!
const { HMSClient } = require('hostmyservers.js');
const client = new HMSClient(apiKey);
client.user.getLastName()
.then(data => console.log(data))
.catch(error => console.error('Error fetching user details:', error));
Contributing π€
Fork the original repository by clicking the βForkβ button at the top right of the repository page.
Clone your fork locally:
git clone https://github.com/FlanZCode/hostmyservers.js.git
Create a new branch for your changes:
git checkout -b my-new-feature
Make your changes in the code.
Commit your changes with a clear message:
git commit -m "Description of my changes"
Push your changes to your fork:
git push origin my-new-feature
Go to your forkβs page on GitHub and click the βNew pull requestβ button.
Describe your changes and submit the pull request.
Credits π
License π
This project is licensed under the MIT License. See the LICENSE file for details.