node.js tag

261 questions


1 answers
83 views
0
Accessing variables declared in node.jsejs file from javascript file

In the ejs file of node.js, xxx.ejs<script> var temp = <%=dateinfo%>;<script>....<script src=/public/test.js></script>Is there a way to declare a temp variable like this...

2 years ago

1 answers
125 views
0
Change Sequelize Port

When node.js connects to MySQL server using Sequelize, it seems that the port is basically connected to 3306, is there a way to change this port?

2 years ago

1 answers
75 views
0
discord.js random image question

// Send hikari's imageclient.on('message', message => { if (message.content.startsWith (hikari)) { const hikari = [ 'https://example/giphy.gif', 'https://example/giphy2.gif', 'https://example/g...

2 years ago

1 answers
114 views
0
Problems with Korean conversion when converting ts -> js in typescript (especially when using 'template string')

While following the Gulp section on the TypeScript home page.// File name: src/main.tsfunction hello(compiler: string) { console.log(`Hello from ${compiler}`);}hello('TypeScript');On the example code,...


1 answers
35 views
0
I want to know the code to get the CDN link of discord.js v12 emoji.

Like Mini Kuda, we are trying to create a bot that recognizes when a user uses an emoji and converts the emoji to an address and sends a message (not embedded, just a link).Official discode.I'm trying...

2 years ago

3 answers
38 views
0
About javascript / nodejs

Creating a simple function related to nodejs.function templateList(){ var templateList; fs.readdir('./data',function(err,fileList){ The total number of files in //./data is 3. templateteList = `<ul...

2 years ago

1 answers
117 views
0
Unable to get mp3 file as require function of node.js.

We are creating a sound effect playback app with Expo (React Native).  I'm trying to make it by referring to the Expo official document, but here, I'm importing the mp3 file as a require function.  Co...


1 answers
119 views
0
I want to implement membership with Node.js and Mongodb.

Hello, it's nothing butI'm working on a code to implement membership with node.js and mongoDBI have a question because I couldn't get the username and password continuously.I don't know what the hell'...

2 years ago

1 answers
53 views
0
I have a question about node.js request

I made a function because I wanted to return the data received by request(get) in a variableIf you take a function, Promise { <pending>} It pops up like this. I don't know what to do, so I'm ask...

2 years ago

1 answers
42 views
0
I want to run the code asynchronously

Hi, how are you?I want to find data in the database and put it in json form. Json's response is executed before data is found and contained, so where should I use wait to find data and then respond?It...

2 years ago
« - 26 - »

© 2024 OneMinuteCode. All rights reserved.