2.3.3 โข Published 4 days ago
nayan-server v2.3.3
Instalation :
> npm i nayan-server
Available Api
โข gpt
โข spotify
โข img2text
โข pintarest
โข textpro
โข photoxy
โข ip2lucation
โข removebg
โข upscale
โข tokencookie (fb)
โข fbinfo
โข GDLink
โข google web search
โข text to voice
Usage GPT
const { gpt } = require("nayan-server");
gpt({
messages: [
{
role: "assistant",
content: "Hello! How are you today?"
},
{
role: "user",
content: "Hello, my name is Nayan."//your name
},
{
role: "assitant",
content: "Hello, Nayan! How are you today?"
}
],
prompt: "Can you repeat my name?",
model: "GPT-4",
markdown: false
}, (err, data) => {
if(err != null){
console.log(err);
} else {
console.log(data);
}
});
Usage Spotify
const { spotify } = require("nayan-server");
const name = "ghum" //song name
spotify(name).then(data => {
console.log(data)
});
Usage Pintarest
const { pintarest } = require("nayan-server");
const search = "Neymar pic"
pintarest(search).then(data => {
console.log(data)
});
Usage img2text
const { img2text } = require("nayan-server");
img2text("https://i.imgur.com/2TTyRTo.jpeg").then(data => {
console.log(data)
});
Usage PHOTOXY
const {photoxy} = require("nayan-server");
const url = "url" // photoxy url
const text = "nayan" // your text
photoxy(url, [text])
.then((data) => console.log(data))
.catch((err) => console.log(err));
Usage Photoxy 2 text
const {photoxy} = require("nayan-server");
const url = "url" // photoxy 2 text input url
const text = "Mohammad" // your text
const text2 = "nayan" // your text
photoxy(url, [text, text2])
.then((data) => console.log(data))
.catch((err) => console.log(err));
Usaage Textpro
const {textpro} = require("nayan-server");
const url = "url" // textpro url
const text = "nayan" // your text
textpro(url, [text])
.then((data) => console.log(data))
.catch((err) => console.log(err));
Usage Textpro 2 text
const {textpro} = require("nayan-server");
const url = "url" // textpro 2 text input url
const text = "Mohammad"//your text
const text2 = "nayan"// your text
textpro(url, [text, text2])
.then((data) => console.log(data))
.catch((err) => console.log(err))
Usage Ip2Lucation
const { ip } = require("nayan-server");
const address = "ip" //ip address
ip(address).then(data => {
console.log(data)
});
Usage removebg
const { removebg } = require("nayan-server");
const url = "url" //pic url
removebg(url).then(data => {
console.log(data)
});
Usage upscale
const { upscale } = require("nayan-server");
const link = "link" //past pic link
const model = "1"// model 1 or 2
upscale(link, model).then(data => {
console.log(data)
});
Usage TokenCookie (fb)
const { tokencookie } = require("nayan-server");
const user = "username" // your fb username
const pass = "password" // your fb password
tokencookie(user, pass).then(data => {
console.log(data)
});
Usage Fbinfo
const { fbinfo } = require("nayan-server");
const token = "token" // your fb access token
const uid = "uid" // fb user uid
fbinfo(token, uid).then(data => {
console.log(data)
});
Usage GDLink
const {GDLink} = require("nayan-server");
const url = 'url' // Public Google Drive Url
GDLink(url).then(data => {
console.log(data)
});
Usage Google Web Search
const { gwsearch } = require("nayan-server");
const name = "nayan-server" // Name of the website
const limit = "5" // limit of results (total limit 1-20)
gwsearch(name, limit).then(data => {
console.log(data)
});
Usage Imagine
const { imagine } = require("nayan-server");
const promt = "cat, 4k" // your promt
imagine(promt).then(data => {
console.log(data)
});
Usage Text To Voice
Name
Male: Bashkar, Pradeep
Female: Nabanita, Tanisha
const { text2voice } = require('nayan-server')
const text = 'เฆเฆฎเฆพเฆฐ เฆจเฆพเฆฎ เฆจเงเฆจ';
const name = 'Tanisha';
text2voice(text, name).then(data => {
console.log(data)
})
CONTACT ME๐ฑ
2.3.3
4 days ago
2.3.2
5 days ago
2.3.1
5 days ago
2.3.0
9 days ago
2.2.9
14 days ago
2.2.8
25 days ago
2.2.7
1 month ago
2.2.6
1 month ago
2.2.5
1 month ago
2.2.3
1 month ago
2.2.4
1 month ago
2.2.2
1 month ago
2.2.1
2 months ago
2.2.0
2 months ago
2.1.9
2 months ago
2.1.8
2 months ago
2.1.7
2 months ago
2.1.6
2 months ago
2.1.5
2 months ago
2.1.4
2 months ago
2.1.3
2 months ago
2.1.2
2 months ago
2.1.1
2 months ago
2.0.9
2 months ago
2.1.0
2 months ago
2.0.8
2 months ago
2.0.5
3 months ago
2.0.7
3 months ago
2.0.6
3 months ago
2.0.4
3 months ago
2.0.3
4 months ago
2.0.2
4 months ago
2.0.1
4 months ago
2.0.0
4 months ago