We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98c80fc commit 74de896Copy full SHA for 74de896
README.md
@@ -82,8 +82,11 @@ _in Browser_
82
_in NodeJS (in an async context)_
83
84
```typescript
85
-// Import the SDK in Typescript
86
-import TCGdex from '@tcgdex/sdk';
+// Import the SDK in Typescript or moduleJS
+import TCGdex from '@tcgdex/sdk'
87
+
88
+// import the SDK in commonJS
89
+const TCGdex = require('@tcgdex/sdk').default
90
91
// Instantiate the SDK
92
const tcgdex = new TCGdex('en');
0 commit comments