How to make code modification in the lib folder take effect in a JavaScript library project
I know this must be a very naive question, however, I can read code well but lack experience working on projects, and thus don’t quite understand the relationships of all the folders and files within a project.
how to remove url from string?
How can I remove the url from a string? I url might not start with https or http. How can I do this using javascript? I want to prevent people from sending bad urls to my users through the sign up form.
Buffer includes issue with escaped characters
In the context of a babel plugin, I reading a Buffer from a file to check some content.
Store the stdout of NodeJS spawn as a string in a variable
I have a weird situation. I am building an Electron application, and need to return a function that will run an executable in the background and then return the output to the Renderer process. I have the IPC part working but can’t seem to figure out how to return the stdout of spawn as a variable that I can use within my React code. Here is the script I am currently using:
Discord bot not responding to slash commands
I’m having trouble with my Discord bot not responding to slash commands. I’ve implemented the interactionCreate
event handler and am using the discord.js
library.
The requested module ‘openai’ does not provide an export named ‘Configuration’
I’m trying to create Chat Completion and I got this error:
how to get redirect addresses
When trying to access a website from a browser, after I type the generic URL, am redirected to a more complex (different) URL.
Node.js converting JSON file to a .txt file and format
Im trying to solve something i cant seem to find the answer to anywhere. Im collecting data and the spitting the data into a json file (intake.json) which contains an array of objects. Im trying to write a function that, when called, will take the intake.json file and write to a .txt file and then format the file. I cant seem to get things right. Any help would be appreciated:
Type Error : Assignement to const variable declaring a variable as let (in config.js file and export to another file index.js
In javascript(node JS), I have made a config.js file like below for export a name variable
Button/Function not working due to ‘ in the generated text
I am building a response generator using gpt.