mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 02:42:08 +00:00
fix: update README
Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
parent
98c80fcd20
commit
74de8961ef
@ -82,8 +82,11 @@ _in Browser_
|
||||
_in NodeJS (in an async context)_
|
||||
|
||||
```typescript
|
||||
// Import the SDK in Typescript
|
||||
import TCGdex from '@tcgdex/sdk';
|
||||
// Import the SDK in Typescript or moduleJS
|
||||
import TCGdex from '@tcgdex/sdk'
|
||||
|
||||
// import the SDK in commonJS
|
||||
const TCGdex = require('@tcgdex/sdk').default
|
||||
|
||||
// Instantiate the SDK
|
||||
const tcgdex = new TCGdex('en');
|
||||
|
Loading…
x
Reference in New Issue
Block a user