PUBG API for Typescript
PUBG's REST API in an easy to use async/await, promise based library for Typescript.
Installation and Usage
Install via npm or yarn
# Through npm npm install pubg.api.ts --save# Through yarn yarn add pubg.api.ts
Start using by invoking the PubgApi
class
; ;
Configuration
Configure default values by passing them into the PubgApi Class
; ; ; // Can also view defaults by accessing it with the defaults keyApi.defaults;
Unit Test Cases
You can run unit test cases by running
# Through npm npm run test# Through yarn yarn test
Please note you need to have a valid PUBG API Key for tests to run
export PUBG_KEY='MY-PUBG-API-KEY'
API Documentation
Everything you need to know in regards to how the api works is in API.md
Referencing via JSDoc
You can build documentation through JSDoc by running
# Through npm npm run jsdoc# Through yarn yarn jsdoc
Additional Resources
-
If you need help, 📫 hello@chriscates.ca
-
If you have a feature request, feel free to open an issue
-
MIT Licensed