semrush-api-client 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +9 -2
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # semrush-api-client
2
2
 
3
+ [![Version badge](https://badgen.net/github/release/RenKoya1/semrush-api-client?refresh)](https://github.com/RenKoya1/semrush-api-client/releases)
4
+
5
+ [![Package size badge](https://badgen.net/bundlephobia/minzip/semrush-api-client)](https://bundlephobia.com/package/semrush-api-client)
6
+
3
7
  A Node.js/TypeScript client for accessing the SEMrush API easily.
4
8
 
5
9
  ## Installation
@@ -25,14 +29,10 @@ const client = new SemrushAPIClient({
25
29
  });
26
30
 
27
31
  // Get domain rank
28
- client.getDomainRank({ domain: "apple.com" }).then((data) => {
29
- console.log(data);
30
- });
32
+ client.getDomainRank({ domain: "apple.com" });
31
33
 
32
34
  // Get keyword data
33
- client.getPhrase({ phrase: "apple" }).then((data) => {
34
- console.log(data);
35
- });
35
+ client.getPhrase({ phrase: "apple" });
36
36
  ```
37
37
 
38
38
  ## Contributing
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "semrush-api-client",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
- "main": "index.js",
6
5
  "license": "Apache-2.0",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js"
12
+ }
13
+ },
7
14
  "scripts": {
8
15
  "build": "tsc",
9
16
  "test": "echo \"Error: no test specified\" && exit 1"