|
| 1 | +<a href="https://github.com/Fortnite-API/nodejs-wrapper"><img align="left" src="https://fortnite-api.com/assets/img/logo.png" height=128 width=128 /></a> |
| 2 | + |
| 3 | +[](https://github.com/Fortnite-API/nodejs-wrapper/actions/workflows/ci.yml) |
| 4 | +[](https://npmjs.com/package/fnapicom) |
| 5 | +[](https://npmjs.com/package/fnapicom) |
| 6 | +[](https://github.com/Fortnite-API/nodejs-wrapper/blob/master/LICENSE) |
| 7 | +[](https://discord.gg/hGzW8gSMCa) |
| 8 | + |
| 9 | +A JavaScript / TypeScript wrapper for [Fortnite-API.com](https://fortnite-api.com/) |
| 10 | + |
| 11 | +Note: This is the NodeJS version. You can find the browser version [here](https://github.com/Fortnite-API/nodejs-wrapper/tree/web) |
| 12 | + |
| 13 | +<br /> |
| 14 | +<hr /> |
| 15 | + |
| 16 | +<h2>Installation</h2> |
| 17 | + |
| 18 | +``` |
| 19 | +npm install fnapicom |
| 20 | +``` |
| 21 | + |
| 22 | +<h2>Usage example</h2> |
| 23 | + |
| 24 | +```javascript |
| 25 | +const { Client, Language } = require('fnapicom'); |
| 26 | + |
| 27 | +const client = new Client({ |
| 28 | + language: Language.English, |
| 29 | + apiKey: 'your-api-key', |
| 30 | +}); |
| 31 | + |
| 32 | +client.aesKeys() |
| 33 | + .then(console.log); |
| 34 | +``` |
| 35 | + |
| 36 | +<h2>Links</h2> |
| 37 | + |
| 38 | +- [NPM](https://npmjs.com/package/fnapicom) |
| 39 | +- [Docs](https://dash.fortnite-api.com/) |
| 40 | +- [Discord](https://discord.gg/hGzW8gSMCa) |
| 41 | + |
| 42 | +<h2>License</h2> |
| 43 | +MIT License |
| 44 | + |
| 45 | +Copyright (c) 2022 Nils S. |
| 46 | + |
| 47 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 48 | +of this software and associated documentation files (the "Software"), to deal |
| 49 | +in the Software without restriction, including without limitation the rights |
| 50 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 51 | +copies of the Software, and to permit persons to whom the Software is |
| 52 | +furnished to do so, subject to the following conditions: |
| 53 | + |
| 54 | +The above copyright notice and this permission notice shall be included in all |
| 55 | +copies or substantial portions of the Software. |
| 56 | + |
| 57 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 58 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 59 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 60 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 61 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 62 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 63 | +SOFTWARE. |
0 commit comments