mirror of
https://github.com/maxswa/osrs-json-hiscores.git
synced 2025-10-15 10:19:04 +00:00
now using export default instead of module.exports
This commit is contained in:
@@ -13,7 +13,7 @@ $ npm install osrs-json-hiscores
|
|||||||
## How to use
|
## How to use
|
||||||
Install the package via npm and then import it into your project:
|
Install the package via npm and then import it into your project:
|
||||||
```javascript
|
```javascript
|
||||||
const hiscores = require('osrs-json-hiscores')
|
import hiscores from 'osrs-json-hiscores'
|
||||||
```
|
```
|
||||||
Once you import it you can call the functions asynchronously:
|
Once you import it you can call the functions asynchronously:
|
||||||
```javascript
|
```javascript
|
||||||
|
@@ -294,4 +294,4 @@ let parseStats = (csv) => {
|
|||||||
return stats
|
return stats
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {getStats, getHiscores}
|
export default {getStats, getHiscores}
|
Reference in New Issue
Block a user