UNPKG

sdk-lord-of-the-rings

Version:

```bash npm i sdk-lord-of-the-rings ```

16 lines (13 loc) 300 B
'use strict'; import fetch from 'node-fetch'; class Network { static async get(url, params) { try { const result = await fetch(url, params); return await result.json(); } catch (error) { throw error; } } } export default Network;