Skip to content

Commit

Permalink
update to reflect new import structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rsek committed Apr 20, 2022
1 parent c711795 commit 7b2fdc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ If you just want the data as-is, import its `data` object to use the pre-loaded,
### ESM

```javascript
import { data } from 'dataforged'
import { starforged } from 'dataforged'
```

### CommonJS

CommonJS support is still experimental.

```javascript
const { data } = require('dataforged')
const { starforged } = require('dataforged')
```


Expand Down

0 comments on commit 7b2fdc8

Please sign in to comment.