npm.io
1.0.3 • Published 5 years ago

fortool

Licence
ISC
Version
1.0.3
Deps
3
Size
7 kB
Vulns
23
Weekly
0
DeprecatedThis package is deprecated

fortool

npm version

Install the Module

npm install fortool

Require and Instantiate

const Fortool = require("fortool");

// Instantiate with API Credentials
const client = new Fortool({
    defaultLanguage: 'en', // Optional - will default to 'en'
    ignoreWarnings: false // Optional -will default to false
});

Example API Calls

Here ae the available API calls

// Get the shop
const shop = await client.shop();

// Get the news
const news = await client.news();

// Get the rotation
const rotation = await client.rotation();

Acknowledgement

Thanks for the inspiration of the fortniteapi.io module

License

MIT

Keywords