diff --git a/README.md b/README.md index 85db8ab..369ddc8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/hiscores.js b/hiscores.js index aace156..c0e876d 100644 --- a/hiscores.js +++ b/hiscores.js @@ -294,4 +294,4 @@ let parseStats = (csv) => { return stats } -module.exports = {getStats, getHiscores} \ No newline at end of file +export default {getStats, getHiscores} \ No newline at end of file