From 2f1741c003be6ce05af613d691cd0bb0bf4da045 Mon Sep 17 00:00:00 2001 From: maxswa Date: Sun, 20 May 2018 14:34:16 -0400 Subject: [PATCH] now using export default instead of module.exports --- README.md | 2 +- hiscores.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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