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
|
||||
Install the package via npm and then import it into your project:
|
||||
```javascript
|
||||
const hiscores = require('osrs-json-hiscores')
|
||||
import hiscores from 'osrs-json-hiscores'
|
||||
```
|
||||
Once you import it you can call the functions asynchronously:
|
||||
```javascript
|
||||
|
@@ -294,4 +294,4 @@ let parseStats = (csv) => {
|
||||
return stats
|
||||
}
|
||||
|
||||
module.exports = {getStats, getHiscores}
|
||||
export default {getStats, getHiscores}
|
Reference in New Issue
Block a user