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 f9ab24f commit 05d24d3Copy full SHA for 05d24d3
README.md
@@ -23,10 +23,9 @@ const Options = {
23
port: 7777,
24
timeout: 1000
25
};
26
-Query(Options, function (err, res) {
27
- if(error) return console.error(err);
28
- else return console.log(res);
29
-});
+Query(Options)
+ .catch(console.error)
+ .then(console.log);
30
```
31
## 🎁 Sample output
32
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "best-samp-query",
3
"description": "Simplified Query API for SAMP: Efficient and easy retrieval of information from the server 🔥",
4
- "version": "1.1.0",
+ "version": "1.1.1",
5
"main": "best-samp-query.js",
6
"license": "MIT",
7
"author": "daniscript18",
0 commit comments