changed import statement to require

This commit is contained in:
maxswa
2018-05-18 22:09:58 -04:00
parent facf6d673b
commit d4ff2742b9

View File

@@ -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
import hiscores from 'osrs-json-hiscores' const hiscores = require('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