altv-api-wrapper
v1.1.1
Published
NodeJS Wrapper for the alt:V masterlist API
Downloads
3
Readme
Installation
npm install altv-api-wrapper
yarn add altv-api-wrapper
Contribute
There are many ways to contribute to this repo.
- Submit bugs and help us verify fixes as they are checked in.
- Review the source code changes.
Example Usage
Get Server By Host
Callback
import { Masterlist } from 'altv-api-wrapper';
const masterlist = new Masterlist()
masterlist.getServerByHost('xxxx').then((result) => {
console.log(result)
})
Async... await
import { Masterlist } from 'altv-api-wrapper';
const masterlist = new Masterlist()
async function getServerByHost() {
const server = await masterlist.getServerByHost('xxxx');
console.log(server)
}
Disclaimer
This repository is not affiliated, associated, authorized, endorsed by, or in any way officially connected with alt:V, or the alt:MP team.