nayan-server 0.0.1-security โ 2.3.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.
Potentially problematic release.
This version of nayan-server might be problematic. Click here for more details.
- package/.github/workflows/main.yml +20 -0
- package/README.md +306 -3
- package/package.json +54 -3
- package/src/index.js +56 -0
- package/src/photo.js +1 -0
- package/src/test.js +1 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: "publish npm"
|
|
2
|
+
|
|
3
|
+
on: push
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
publish:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- name: checkout
|
|
10
|
+
uses: actions/checkout@v2
|
|
11
|
+
- name: node
|
|
12
|
+
uses: actions/setup-node@v2
|
|
13
|
+
with:
|
|
14
|
+
node-version: 12
|
|
15
|
+
registry-url: https://registry.npmjs.org
|
|
16
|
+
- name: publish
|
|
17
|
+
run: npm publish --access public
|
|
18
|
+
|
|
19
|
+
env:
|
|
20
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_publish}}
|
package/README.md
CHANGED
|
@@ -1,5 +1,308 @@
|
|
|
1
|
-
# Security holding package
|
|
2
1
|
|
|
3
|
-
|
|
2
|
+
<h3 align="center">
|
|
3
|
+
|
|
4
|
+
<p align="center"><img src="https://img.shields.io/badge/WLCM%20TO -NAYAN SERVER-green?colorA=%23ff0000&colorB=%23017e40&style=flat-square">
|
|
5
|
+
|
|
6
|
+
</h3>
|
|
7
|
+
|
|
8
|
+
[](https://git.io/typing-svg)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<a href="https://www.npmjs.com/package/nayan-server"><img alt="npm version" src="https://img.shields.io/npm/v/nayan-server.svg?style=flat-square"></a>
|
|
12
|
+
<img alt="version" src="https://img.shields.io/github/package-json/v/MOHAMMAD-NAYAN/nayan-server?label=github&style=flat-square">
|
|
13
|
+
<a href="https://www.npmjs.com/package/nayan-server"><img src="https://img.shields.io/npm/dm/nayan-server.svg?style=flat-square" alt="npm downloads"></a><br>
|
|
14
|
+
|
|
15
|
+
## Instalation :
|
|
16
|
+
```bash
|
|
17
|
+
> npm i nayan-server
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
#### Available Api
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
โข gpt
|
|
24
|
+
โข spotify
|
|
25
|
+
โข img2text
|
|
26
|
+
โข pintarest
|
|
27
|
+
โข textpro
|
|
28
|
+
โข photoxy
|
|
29
|
+
โข ephoto
|
|
30
|
+
โข ip2lucation
|
|
31
|
+
โข removebg
|
|
32
|
+
โข upscale
|
|
33
|
+
โข tokencookie (fb)
|
|
34
|
+
โข fbinfo
|
|
35
|
+
โข GDLink
|
|
36
|
+
โข google web search
|
|
37
|
+
โข text to voice
|
|
38
|
+
โข faceswap
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
<h3 align="center">
|
|
42
|
+
|
|
43
|
+
<p align="center"><img src="https://img.shields.io/badge/MORE%20 -API COMING SOON-green?colorA=%23ff0000&colorB=%23017e40&style=flat-square">
|
|
44
|
+
|
|
45
|
+
</h3>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## Usage GPT
|
|
49
|
+
|
|
50
|
+
```javascript
|
|
51
|
+
|
|
52
|
+
const { gpt } = require("nayan-server");
|
|
53
|
+
|
|
54
|
+
gpt({
|
|
55
|
+
messages: [
|
|
56
|
+
{
|
|
57
|
+
role: "assistant",
|
|
58
|
+
content: "Hello! How are you today?"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
role: "user",
|
|
62
|
+
content: "Hello, my name is Nayan."//your name
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
role: "assitant",
|
|
66
|
+
content: "Hello, Nayan! How are you today?"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
prompt: "Can you repeat my name?",
|
|
70
|
+
model: "GPT-4",
|
|
71
|
+
markdown: false
|
|
72
|
+
}, (err, data) => {
|
|
73
|
+
if(err != null){
|
|
74
|
+
console.log(err);
|
|
75
|
+
} else {
|
|
76
|
+
console.log(data);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Usage Spotify
|
|
82
|
+
|
|
83
|
+
```javascript
|
|
84
|
+
|
|
85
|
+
const { spotify } = require("nayan-server");
|
|
86
|
+
|
|
87
|
+
const name = "ghum" //song name
|
|
88
|
+
|
|
89
|
+
spotify(name).then(data => {
|
|
90
|
+
console.log(data)
|
|
91
|
+
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## Usage Pintarest
|
|
97
|
+
```javascript
|
|
98
|
+
const { pintarest } = require("nayan-server");
|
|
99
|
+
|
|
100
|
+
const search = "Neymar pic"
|
|
101
|
+
|
|
102
|
+
pintarest(search).then(data => {
|
|
103
|
+
console.log(data)
|
|
104
|
+
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## Usage img2text
|
|
110
|
+
```javascript
|
|
111
|
+
const { img2text } = require("nayan-server");
|
|
112
|
+
|
|
113
|
+
img2text("https://i.imgur.com/2TTyRTo.jpeg").then(data => {
|
|
114
|
+
console.log(data)
|
|
115
|
+
});
|
|
116
|
+
```
|
|
117
|
+
## Usage PHOTOXY
|
|
118
|
+
```js
|
|
119
|
+
const {photoxy} = require("nayan-server");
|
|
120
|
+
|
|
121
|
+
const url = "url" // photoxy url
|
|
122
|
+
|
|
123
|
+
const text = "nayan" // your text
|
|
124
|
+
|
|
125
|
+
photoxy(url, [text])
|
|
126
|
+
.then((data) => console.log(data))
|
|
127
|
+
.catch((err) => console.log(err));
|
|
128
|
+
```
|
|
129
|
+
## Usage Photoxy 2 text
|
|
130
|
+
```js
|
|
131
|
+
const {photoxy} = require("nayan-server");
|
|
132
|
+
|
|
133
|
+
const url = "url" // photoxy 2 text input url
|
|
134
|
+
|
|
135
|
+
const text = "Mohammad" // your text
|
|
136
|
+
const text2 = "nayan" // your text
|
|
137
|
+
|
|
138
|
+
photoxy(url, [text, text2])
|
|
139
|
+
.then((data) => console.log(data))
|
|
140
|
+
.catch((err) => console.log(err));
|
|
141
|
+
```
|
|
142
|
+
## Usaage Textpro
|
|
143
|
+
```JS
|
|
144
|
+
const {textpro} = require("nayan-server");
|
|
145
|
+
|
|
146
|
+
const url = "url" // textpro url
|
|
147
|
+
|
|
148
|
+
const text = "nayan" // your text
|
|
149
|
+
|
|
150
|
+
textpro(url, [text])
|
|
151
|
+
.then((data) => console.log(data))
|
|
152
|
+
.catch((err) => console.log(err));
|
|
153
|
+
```
|
|
154
|
+
## Usage Textpro 2 text
|
|
155
|
+
```js
|
|
156
|
+
const {textpro} = require("nayan-server");
|
|
157
|
+
|
|
158
|
+
const url = "url" // textpro 2 text input url
|
|
159
|
+
|
|
160
|
+
const text = "Mohammad"//your text
|
|
161
|
+
const text2 = "nayan"// your text
|
|
162
|
+
|
|
163
|
+
textpro(url, [text, text2])
|
|
164
|
+
.then((data) => console.log(data))
|
|
165
|
+
.catch((err) => console.log(err))
|
|
166
|
+
```
|
|
167
|
+
## Usaage Ephoto
|
|
168
|
+
```JS
|
|
169
|
+
const {ephoto} = require("nayan-server");
|
|
170
|
+
|
|
171
|
+
const url = "url" // ephoto url
|
|
172
|
+
|
|
173
|
+
const text = "nayan" // your text
|
|
174
|
+
|
|
175
|
+
ephoto(url, [text])
|
|
176
|
+
.then((data) => console.log(data))
|
|
177
|
+
.catch((err) => console.log(err));
|
|
178
|
+
```
|
|
179
|
+
## Usage Ephoto 2 text
|
|
180
|
+
```js
|
|
181
|
+
const {ephoto} = require("nayan-server");
|
|
182
|
+
|
|
183
|
+
const url = "url" // ephoto 2 text input url
|
|
184
|
+
|
|
185
|
+
const text = "Mohammad"//your text
|
|
186
|
+
const text2 = "nayan"// your text
|
|
187
|
+
|
|
188
|
+
ephoto(url, [text, text2])
|
|
189
|
+
.then((data) => console.log(data))
|
|
190
|
+
.catch((err) => console.log(err))
|
|
191
|
+
```
|
|
192
|
+
## Usage Ip2Lucation
|
|
193
|
+
```js
|
|
194
|
+
const { ip } = require("nayan-server");
|
|
195
|
+
|
|
196
|
+
const address = "ip" //ip address
|
|
197
|
+
|
|
198
|
+
ip(address).then(data => {
|
|
199
|
+
console.log(data)
|
|
200
|
+
|
|
201
|
+
});
|
|
202
|
+
```
|
|
203
|
+
## Usage removebg
|
|
204
|
+
```js
|
|
205
|
+
const { removebg } = require("nayan-server");
|
|
206
|
+
|
|
207
|
+
const url = "url" //pic url
|
|
208
|
+
|
|
209
|
+
removebg(url).then(data => {
|
|
210
|
+
console.log(data)
|
|
211
|
+
|
|
212
|
+
});
|
|
213
|
+
```
|
|
214
|
+
## Usage upscale
|
|
215
|
+
```js
|
|
216
|
+
const { upscale } = require("nayan-server");
|
|
217
|
+
|
|
218
|
+
const link = "link" //past pic link
|
|
219
|
+
const model = "1"// model 1 or 2
|
|
220
|
+
upscale(link, model).then(data => {
|
|
221
|
+
console.log(data)
|
|
222
|
+
});
|
|
223
|
+
```
|
|
224
|
+
## Usage TokenCookie (fb)
|
|
225
|
+
```js
|
|
226
|
+
const { tokencookie } = require("nayan-server");
|
|
227
|
+
|
|
228
|
+
const user = "username" // your fb username
|
|
229
|
+
const pass = "password" // your fb password
|
|
230
|
+
|
|
231
|
+
tokencookie(user, pass).then(data => {
|
|
232
|
+
console.log(data)
|
|
233
|
+
});
|
|
234
|
+
```
|
|
235
|
+
## Usage Fbinfo
|
|
236
|
+
```js
|
|
237
|
+
const { fbinfo } = require("nayan-server");
|
|
238
|
+
|
|
239
|
+
const token = "token" // your fb access token
|
|
240
|
+
const uid = "uid" // fb user uid
|
|
241
|
+
|
|
242
|
+
fbinfo(token, uid).then(data => {
|
|
243
|
+
console.log(data)
|
|
244
|
+
});
|
|
245
|
+
```
|
|
246
|
+
## Usage GDLink
|
|
247
|
+
```js
|
|
248
|
+
const {GDLink} = require("nayan-server");
|
|
249
|
+
|
|
250
|
+
const url = 'url' // Public Google Drive Url
|
|
251
|
+
|
|
252
|
+
GDLink(url).then(data => {
|
|
253
|
+
console.log(data)
|
|
254
|
+
|
|
255
|
+
});
|
|
256
|
+
```
|
|
257
|
+
## Usage Google Web Search
|
|
258
|
+
```js
|
|
259
|
+
const { gwsearch } = require("nayan-server");
|
|
260
|
+
|
|
261
|
+
const name = "nayan-server" // Name of the website
|
|
262
|
+
const limit = "5" // limit of results (total limit 1-20)
|
|
263
|
+
gwsearch(name, limit).then(data => {
|
|
264
|
+
console.log(data)
|
|
265
|
+
});
|
|
266
|
+
```
|
|
267
|
+
## Usage Imagine
|
|
268
|
+
```js
|
|
269
|
+
const { imagine } = require("nayan-server");
|
|
270
|
+
|
|
271
|
+
const promt = "cat, 4k" // your promt
|
|
272
|
+
imagine(promt).then(data => {
|
|
273
|
+
console.log(data)
|
|
274
|
+
});
|
|
275
|
+
```
|
|
276
|
+
## Usage Text To Voice
|
|
277
|
+
```bash
|
|
278
|
+
Name
|
|
279
|
+
Male: Bashkar, Pradeep
|
|
280
|
+
Female: Nabanita, Tanisha
|
|
281
|
+
```
|
|
282
|
+
```js
|
|
283
|
+
const { text2voice } = require('nayan-server')
|
|
284
|
+
const text = 'เฆเฆฎเฆพเฆฐ เฆจเฆพเฆฎ เฆจเงเฆจ';
|
|
285
|
+
const name = 'Tanisha';
|
|
286
|
+
text2voice(text, name).then(data => {
|
|
287
|
+
console.log(data)
|
|
288
|
+
})
|
|
289
|
+
```
|
|
290
|
+
## Usage faceswap
|
|
291
|
+
```js
|
|
292
|
+
const { faceswap } = require("nayan-server");
|
|
293
|
+
|
|
294
|
+
const sourceUrl = "link" //past source pic link
|
|
295
|
+
const targetUrl = "link"// past target pic link
|
|
296
|
+
faceswap(sourceUrl, targetUrl).then(data => {
|
|
297
|
+
console.log(data)
|
|
298
|
+
});
|
|
299
|
+
```
|
|
300
|
+
```bash
|
|
301
|
+
CONTACT ME๐ฑ
|
|
302
|
+
```
|
|
303
|
+
[](https://wa.me/+8801615298449)
|
|
304
|
+
[](https://www.facebook.com/www.xnxx.com169)
|
|
305
|
+
[](https://m.me/100000959749712)
|
|
306
|
+
[](https://github.com/MOHAMMAD-NAYAN)
|
|
307
|
+
|
|
4
308
|
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=nayan-server for more information.
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nayan-server",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "2.3.5",
|
|
4
|
+
"description": "Simple create api(Mohammad Nayan)",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "node src/test.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/MOHAMMAD-NAYAN/NAYAN-SERVER.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"spotify",
|
|
15
|
+
"pintarest",
|
|
16
|
+
"gpt",
|
|
17
|
+
"img2text",
|
|
18
|
+
"textpro",
|
|
19
|
+
"photoxy",
|
|
20
|
+
"ephoto",
|
|
21
|
+
"ephoto360",
|
|
22
|
+
"ip",
|
|
23
|
+
"ip2lucation",
|
|
24
|
+
"removebg",
|
|
25
|
+
"upscale",
|
|
26
|
+
"token",
|
|
27
|
+
"cookies",
|
|
28
|
+
"fbinfo",
|
|
29
|
+
"google",
|
|
30
|
+
"drive",
|
|
31
|
+
"google drive",
|
|
32
|
+
"website",
|
|
33
|
+
"web search",
|
|
34
|
+
"google web search",
|
|
35
|
+
"imagine",
|
|
36
|
+
"text2img",
|
|
37
|
+
"generate img",
|
|
38
|
+
"text to voice",
|
|
39
|
+
"text2voice",
|
|
40
|
+
"faceswap",
|
|
41
|
+
"nayan"
|
|
42
|
+
],
|
|
43
|
+
"author": "NAYAN",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/MOHAMMAD-NAYAN/NAYAN-SERVER/issues"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/MOHAMMAD-NAYAN/NAYAN-SERVER#readme",
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"got": "^11.8.3",
|
|
51
|
+
"cheerio": "~1.0.0-rc.5",
|
|
52
|
+
"cookie": "^0.6.0",
|
|
53
|
+
"form-data": "^4.0.0",
|
|
54
|
+
"axios": "^1.6.5",
|
|
55
|
+
"nayan-media-downloader": ""
|
|
56
|
+
}
|
|
6
57
|
}
|