2.3.3 โ€ข Published 4 days ago

nayan-server v2.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 days ago

Typing SVG

Socket Badge

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๐Ÿฑ

WhatsApp Facebook Messenger Github

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