@nekosuneprojects/nekosunevrtools 1.1.0 → 1.1.1
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 +111 -0
- package/package.json +14 -3
- package/src/cli.js +728 -14
- package/src/downloader/client.js +126 -0
- package/src/downloader/provider/compatible.js +127 -0
- package/src/downloader/providers.js +15 -0
- package/src/games/client.js +162 -0
- package/src/games/provider/nekosune-api.js +329 -0
- package/src/games/providers.js +14 -0
- package/src/index.d.ts +140 -0
- package/src/index.js +26 -2
- package/src/livestream/client.js +70 -0
- package/src/livestream/provider/nekosune-api.js +56 -0
- package/src/livestream/providers.js +14 -0
package/README.md
CHANGED
|
@@ -199,3 +199,114 @@ nekosunevrtools shorten --url "https://example.com" --base-url "https://yourdoma
|
|
|
199
199
|
npm login
|
|
200
200
|
npm publish --access public
|
|
201
201
|
```
|
|
202
|
+
|
|
203
|
+
## Downloader API (dl.nekosunevr.co.uk compatible)
|
|
204
|
+
|
|
205
|
+
Supports compatible hosts like:
|
|
206
|
+
- `https://dl.nekosunevr.co.uk`
|
|
207
|
+
- `https://dl.ballisticok.xyz`
|
|
208
|
+
|
|
209
|
+
SDK:
|
|
210
|
+
|
|
211
|
+
```js
|
|
212
|
+
const { DownloaderClient } = require("@nekosuneprojects/nekosunevrtools");
|
|
213
|
+
|
|
214
|
+
const dl = new DownloaderClient({
|
|
215
|
+
apiKey: process.env.DL_API_KEY,
|
|
216
|
+
preset: "nekosune" // or "ballisticok"
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
const job = await dl.createMp3Job("https://www.youtube.com/watch?v=...", {
|
|
220
|
+
uploadDest: "cdn"
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
const done = await dl.waitForJob(job.jobId, {
|
|
224
|
+
onProgress: (state) => console.log(state.status, state.upload && state.upload.label)
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
console.log(done.url);
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
CLI:
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
nekosunevrtools download-mp3 --url "https://www.youtube.com/watch?v=..." --apikey YOUR_KEY --upload-dest cdn --wait
|
|
234
|
+
nekosunevrtools download-mp4 --url "https://www.youtube.com/watch?v=..." --apikey YOUR_KEY --downloader-preset ballisticok --wait
|
|
235
|
+
nekosunevrtools download-job --job-id <job-id> --apikey YOUR_KEY
|
|
236
|
+
nekosunevrtools download-info --url "https://www.youtube.com/watch?v=..." --fields basic --flat
|
|
237
|
+
nekosunevrtools download-search --query "alan walker faded" --limit 5
|
|
238
|
+
nekosunevrtools download-stream-url --url "https://example.com/file.mp3"
|
|
239
|
+
nekosunevrtools list-download-presets
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## Livestream API
|
|
243
|
+
|
|
244
|
+
Uses `nekosunevr-api-key`/Bearer auth with user-provided API key.
|
|
245
|
+
|
|
246
|
+
SDK example:
|
|
247
|
+
|
|
248
|
+
```js
|
|
249
|
+
const { LivestreamClient } = require("@nekosuneprojects/nekosunevrtools");
|
|
250
|
+
|
|
251
|
+
const live = new LivestreamClient({
|
|
252
|
+
apiKey: process.env.NEKOSUNEVR_API_KEY
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
const twitch = await live.getTwitch("nekosunevr");
|
|
256
|
+
console.log(twitch.livestream && twitch.livestream.online);
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
CLI examples:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
nekosunevrtools live-kick --username mugstv --apikey YOUR_KEY --json
|
|
263
|
+
nekosunevrtools live-twitch --username nekosunevr --apikey YOUR_KEY --json
|
|
264
|
+
nekosunevrtools live-dlive --username nekosunevr --apikey YOUR_KEY --json
|
|
265
|
+
nekosunevrtools live-trovo --username nekosunevr --apikey YOUR_KEY --json
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Games API (Clash of Clans + The Division 2 + Fortnite + Wynncraft + Hypixel + Rocket League + Apex Legends + Battlefield 1 + Battlefield 5 + Battlefield 2042 + Battlefield 6)
|
|
269
|
+
|
|
270
|
+
SDK:
|
|
271
|
+
|
|
272
|
+
```js
|
|
273
|
+
const { GamesClient } = require("@nekosuneprojects/nekosunevrtools");
|
|
274
|
+
|
|
275
|
+
const games = new GamesClient({
|
|
276
|
+
apiKey: process.env.NEKOSUNEVR_API_KEY
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
const clan = await games.getClashOfClansClan("2LLJYCUU8");
|
|
280
|
+
const player = await games.getClashOfClansPlayer("G99PGRC8V");
|
|
281
|
+
const division2 = await games.getDivision2Player("ChisdealHDYT", "psn");
|
|
282
|
+
const fortnite = await games.getFortnitePlayer("NekoSuneVR", "lifetime");
|
|
283
|
+
const creator = await games.getFortniteCreatorCode("NekoSuneVR");
|
|
284
|
+
const itemShop = await games.getFortniteItemShop();
|
|
285
|
+
const wynncraft = await games.getWynncraftProfile("NekoSuneVR");
|
|
286
|
+
const hypixel = await games.getHypixelProfile("NekoSuneVR");
|
|
287
|
+
const rocketLeague = await games.getRocketLeaguePlayer("ChisdealHDYT", "psn");
|
|
288
|
+
const apex = await games.getApexLegendsPlayer("ChisdealHDYT", "psn");
|
|
289
|
+
const battlefield1 = await games.getBattlefield1Player("ChisdealHDYT", "psn");
|
|
290
|
+
const battlefield5 = await games.getBattlefield5Player("ChisdealHDYT", "psn");
|
|
291
|
+
const battlefield2042 = await games.getBattlefield2042Player("NekoSuneVR", "ea");
|
|
292
|
+
const battlefield6 = await games.getBattlefield6Player("ChisdealHDYT", "psn");
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
CLI:
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
nekosunevrtools coc-clan --clan-tag 2LLJYCUU8 --apikey YOUR_KEY --json
|
|
299
|
+
nekosunevrtools coc-player --player-tag G99PGRC8V --apikey YOUR_KEY --json
|
|
300
|
+
nekosunevrtools division2-player --username ChisdealHDYT --division-platform psn --apikey YOUR_KEY --json
|
|
301
|
+
nekosunevrtools fortnite-player --username NekoSuneVR --time-window lifetime --apikey YOUR_KEY --json
|
|
302
|
+
nekosunevrtools fortnite-creatorcode --creator-code NekoSuneVR --apikey YOUR_KEY --json
|
|
303
|
+
nekosunevrtools fortnite-item-shop --apikey YOUR_KEY --json
|
|
304
|
+
nekosunevrtools wynncraft-profile --username NekoSuneVR --apikey YOUR_KEY --json
|
|
305
|
+
nekosunevrtools hypixel-profile --username NekoSuneVR --apikey YOUR_KEY --json
|
|
306
|
+
nekosunevrtools rocketleague-player --username ChisdealHDYT --game-platform psn --apikey YOUR_KEY --json
|
|
307
|
+
nekosunevrtools apexlegends-player --username ChisdealHDYT --game-platform psn --apikey YOUR_KEY --json
|
|
308
|
+
nekosunevrtools battlefield1-player --username ChisdealHDYT --game-platform psn --apikey YOUR_KEY --json
|
|
309
|
+
nekosunevrtools battlefield5-player --username ChisdealHDYT --game-platform psn --apikey YOUR_KEY --json
|
|
310
|
+
nekosunevrtools battlefield2042-player --username NekoSuneVR --game-platform ea --apikey YOUR_KEY --json
|
|
311
|
+
nekosunevrtools battlefield6-player --username ChisdealHDYT --game-platform psn --apikey YOUR_KEY --json
|
|
312
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nekosuneprojects/nekosunevrtools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Multi-platform file upload client for Node.js with pluggable adapters, progress events, and CLI support.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"nekosunevrtools": "bin/nekosunevrtools.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"check": "node --check src/index.js && node --check src/upload/client.js && node --check src/upload/providers.js && node --check src/upload/provider/upfiles.js && node --check src/upload/provider/fileio.js && node --check src/upload/provider/catbox.js && node --check src/upload/provider/transfersh.js && node --check src/shorturl/providers.js && node --check src/shorturl/provider/adlinkfly-compatible.js && node --check src/shorturl/provider/presets.js && node --check src/video/providers.js && node --check src/video/provider/doodstream.js && node --check src/upload-client.js && node --check src/earnings.js && node --check src/cli.js && node --check src/utils/file.js && node --check bin/nekosunevrtools.js"
|
|
11
|
+
"check": "node --check src/index.js && node --check src/downloader/client.js && node --check src/downloader/providers.js && node --check src/downloader/provider/compatible.js && node --check src/livestream/client.js && node --check src/livestream/providers.js && node --check src/livestream/provider/nekosune-api.js && node --check src/games/client.js && node --check src/games/providers.js && node --check src/games/provider/nekosune-api.js && node --check src/upload/client.js && node --check src/upload/providers.js && node --check src/upload/provider/upfiles.js && node --check src/upload/provider/fileio.js && node --check src/upload/provider/catbox.js && node --check src/upload/provider/transfersh.js && node --check src/shorturl/providers.js && node --check src/shorturl/provider/adlinkfly-compatible.js && node --check src/shorturl/provider/presets.js && node --check src/video/providers.js && node --check src/video/provider/doodstream.js && node --check src/upload-client.js && node --check src/earnings.js && node --check src/cli.js && node --check src/utils/file.js && node --check bin/nekosunevrtools.js"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"upload",
|
|
@@ -17,7 +17,18 @@
|
|
|
17
17
|
"api-client",
|
|
18
18
|
"cli",
|
|
19
19
|
"discord",
|
|
20
|
-
"nodejs"
|
|
20
|
+
"nodejs",
|
|
21
|
+
"downloader",
|
|
22
|
+
"youtube",
|
|
23
|
+
"mp3",
|
|
24
|
+
"mp4",
|
|
25
|
+
"livestream",
|
|
26
|
+
"twitch",
|
|
27
|
+
"kick",
|
|
28
|
+
"trovo",
|
|
29
|
+
"dlive",
|
|
30
|
+
"clashofclans",
|
|
31
|
+
"games-api"
|
|
21
32
|
],
|
|
22
33
|
"author": "",
|
|
23
34
|
"license": "MIT",
|