now using export default instead of module.exports

This commit is contained in:
maxswa
2018-05-20 14:34:16 -04:00
parent d4ff2742b9
commit 2f1741c003
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -294,4 +294,4 @@ let parseStats = (csv) => {
return stats
}
module.exports = {getStats, getHiscores}
export default {getStats, getHiscores}