shan-server 1.0.0

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 (3) hide show
  1. package/README.md +2 -0
  2. package/index.js +23 -0
  3. package/package.json +23 -0
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # ShAn-Server
2
+ A Simple server...
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ const axios = require('axios');
2
+
3
+ const Sh4n = 'https://sh-ans-api-07.vercel.app/';
4
+
5
+ module.exports = {
6
+ alldl: (url, author) => axios.get(`${Sh4n}ShAn-alldl?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
7
+ alldl2: (url, author) => axios.get(`${Sh4n}ShAn-alldl2?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
8
+ fbDL: (url, author) => axios.get(`${Sh4n}ShAn-fbDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
9
+ ytDL: (url, author) => axios.get(`${Sh4n}ShAn-ytDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
10
+ threaDL: (url, author) => axios.get(`${Sh4n}ShAn-threaDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
11
+ twitDL: (url, author) => axios.get(`${Sh4n}ShAn-twitDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
12
+ tikDL: (url, author) => axios.get(`${Sh4n}ShAn-tikDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
13
+ instaDL: (url, author) => axios.get(`${Sh4n}ShAn-instaDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
14
+ instaDL2: (url, author) => axios.get(`${Sh4n}ShAn-instaDL2?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
15
+ instaDL3: (url, author) => axios.get(`${Sh4n}ShAn-instaDL3?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
16
+ pinDL: (url, author) => axios.get(`${Sh4n}ShAn-pinDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
17
+ capcutDL: (url, author) => axios.get(`${Sh4n}ShAn-capcutDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
18
+ likeeDL: (url, author) => axios.get(`${Sh4n}ShAn-likeeDL?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
19
+ ytSearch: (query, author) => axios.get(`${Sh4n}alldl?url=${encodeURIComponent(query)}&author=${encodeURIComponent(author)}`).then(res => res.data),
20
+ alldown: (url) => axios.get(`${apiBaseUrl}alldown?url=${encodeURIComponent(url)}&author=${encodeURIComponent(author)}`).then(res => res.data),
21
+ spotifySearch: (name, limit) => axios.get(`${apiBaseUrl}spotify-search?name=${encodeURIComponent(name)}&limit=${limit}`).then(res => res.data),
22
+ spotifyDl: (url) => axios.get(`${apiBaseUrl}spotifyDl?url=${encodeURIComponent(url)}`).then(res => res.data)
23
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "shan-server",
3
+ "version": "1.0.0",
4
+ "description": "A server by ShAn ",
5
+ "keywords": [
6
+ "alldl"
7
+ ],
8
+ "homepage": "https://github.com/Sh4nDev/ShAn-Server#readme",
9
+ "bugs": {
10
+ "url": "https://github.com/Sh4nDev/ShAn-Server/issues"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/Sh4nDev/ShAn-Server.git"
15
+ },
16
+ "license": "ISC",
17
+ "author": "♡︎ 𝗦𝗵𝗔𝗻 ♡︎",
18
+ "type": "commonjs",
19
+ "main": "index.js",
20
+ "scripts": {
21
+ "test": "echo \"Error: no test specified\" && exit 1"
22
+ }
23
+ }