@apiverve/moonphases 1.1.4 → 1.1.6
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.
- package/README.md +20 -18
- package/index.js +1 -1
- package/package.json +31 -31
package/README.md
CHANGED
|
@@ -47,13 +47,15 @@ Using the API client, you can perform requests to the API.
|
|
|
47
47
|
###### Define Query
|
|
48
48
|
|
|
49
49
|
```
|
|
50
|
-
|
|
50
|
+
var query = {
|
|
51
|
+
today: true
|
|
52
|
+
};
|
|
51
53
|
```
|
|
52
54
|
|
|
53
55
|
###### Simple Request (using Callback)
|
|
54
56
|
|
|
55
57
|
```
|
|
56
|
-
api.execute(function (error, data) {
|
|
58
|
+
api.execute(query, function (error, data) {
|
|
57
59
|
if (error) {
|
|
58
60
|
return console.error(error);
|
|
59
61
|
} else {
|
|
@@ -65,22 +67,22 @@ api.execute(function (error, data) {
|
|
|
65
67
|
###### Example Response
|
|
66
68
|
|
|
67
69
|
```
|
|
68
|
-
{
|
|
69
|
-
"status": "ok",
|
|
70
|
-
"error": null,
|
|
71
|
-
"data": {
|
|
72
|
-
"phase": "
|
|
73
|
-
"phaseEmoji": "
|
|
74
|
-
"waxing":
|
|
75
|
-
"waning":
|
|
76
|
-
"lunarAge":
|
|
77
|
-
"lunarAgePercent": 0.
|
|
78
|
-
"lunationNumber":
|
|
79
|
-
"lunarDistance":
|
|
80
|
-
"nextFullMoon": "2024-
|
|
81
|
-
"lastFullMoon": "2024-
|
|
82
|
-
},
|
|
83
|
-
"code": 200
|
|
70
|
+
{
|
|
71
|
+
"status": "ok",
|
|
72
|
+
"error": null,
|
|
73
|
+
"data": {
|
|
74
|
+
"phase": "New",
|
|
75
|
+
"phaseEmoji": "🌑",
|
|
76
|
+
"waxing": false,
|
|
77
|
+
"waning": true,
|
|
78
|
+
"lunarAge": 28.101337448866754,
|
|
79
|
+
"lunarAgePercent": 0.951601022264299,
|
|
80
|
+
"lunationNumber": 1258,
|
|
81
|
+
"lunarDistance": 63.013342336394949,
|
|
82
|
+
"nextFullMoon": "2024-10-02T00:00:00Z",
|
|
83
|
+
"lastFullMoon": "2024-08-03T00:00:00Z"
|
|
84
|
+
},
|
|
85
|
+
"code": 200
|
|
84
86
|
}
|
|
85
87
|
```
|
|
86
88
|
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@apiverve/moonphases",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Moon Phases is a simple tool for getting the moon phases. It returns the moon phase for a given date.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "mocha"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/apiverve/moonphases-API.git"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"moon phases","moon phases api","moon phases tool","moon phases software","moon phases service"
|
|
15
|
-
],
|
|
16
|
-
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/apiverve/moonphases-API/issues"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://apiverve.com/marketplace/api/moonphases",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"mocha": "^
|
|
24
|
-
"chai": "^5.1.
|
|
25
|
-
"dotenv": "^16.4.
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"node-fetch": "^3.3.2",
|
|
29
|
-
"promise": "^8.3.0",
|
|
30
|
-
"axios": "1.7.
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@apiverve/moonphases",
|
|
3
|
+
"version": "1.1.6",
|
|
4
|
+
"description": "Moon Phases is a simple tool for getting the moon phases. It returns the moon phase for a given date.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/apiverve/moonphases-API.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"moon phases","moon phases api","moon phases tool","moon phases software","moon phases service"
|
|
15
|
+
],
|
|
16
|
+
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/apiverve/moonphases-API/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://apiverve.com/marketplace/api/moonphases?utm_source=npm",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"mocha": "^11.0.1",
|
|
24
|
+
"chai": "^5.1.2",
|
|
25
|
+
"dotenv": "^16.4.7"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"node-fetch": "^3.3.2",
|
|
29
|
+
"promise": "^8.3.0",
|
|
30
|
+
"axios": "1.7.9"
|
|
31
|
+
}
|
|
32
32
|
}
|