Skip to content

Commit 74de896

Browse files
committed
fix: update README
Signed-off-by: Florian BOUILLON <[email protected]>
1 parent 98c80fc commit 74de896

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ _in Browser_
8282
_in NodeJS (in an async context)_
8383

8484
```typescript
85-
// Import the SDK in Typescript
86-
import TCGdex from '@tcgdex/sdk';
85+
// Import the SDK in Typescript or moduleJS
86+
import TCGdex from '@tcgdex/sdk'
87+
88+
// import the SDK in commonJS
89+
const TCGdex = require('@tcgdex/sdk').default
8790

8891
// Instantiate the SDK
8992
const tcgdex = new TCGdex('en');

0 commit comments

Comments
 (0)