Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
18 views

I'm working on a Discord bot using the popular Discord.js library I've recently moved all my non config files to a folder called 'src' In my 'index.js' file I have an fs statement that reads all the ...
bradys dev's user avatar
0 votes
1 answer
47 views

We are using directory-tree npm to read all the directories and sub directories(subdirectories having 15000 multiple subdirectories) Used Code: const dirTree = require("directory-tree"); ...
Reena's user avatar
  • 1
1 vote
0 answers
341 views

The project I'm working on allows the user to choose where they want to locate the files we use and by default on Windows we set the main file in a folder in C:\Program Files. Well when wanting to ...
Nathaniel M.'s user avatar
-3 votes
1 answer
1k views

I am working in a monorepo, using bolt to manage package installation. I also use preconstruct in order to build exports which are compatible with both module and common js. With preconstruct I am ...
Giacomo Gagliano's user avatar
1 vote
0 answers
190 views

I am trying to read a big file in chunks instead of loading it directly to memory using nodejs. My goal is to read the file but cannot load it into memory as the file is big and then group the ...
hulike2286's user avatar
1 vote
1 answer
1k views

We're using node fs to access Files from NFS Network Drive. While testing locally, it works fine as it tries to access the NFS using my credentials in the background. When I deploy the same code in ...
Sriram R's user avatar
  • 320
0 votes
1 answer
329 views

I'm trying to make a REST api to hold json files for contacts, for some reason my endpoint responds before it should. const fs = require("fs/promises"); app.get("/contacts", async ...
Michael 's user avatar
0 votes
1 answer
596 views

I know there are many other questions reporting very similar situations, but not exactly, and none helped me. I'm trying to use the 'ffmpeg-static-electron' dependency on Angular Electron. On my yt-...
Arco Voltaico's user avatar
2 votes
1 answer
177 views

I'm trying to create a readableStream through which I would send chunks of data ( html in this case ). The problem is that even if I manage to get a chunk of data the res.write() method does nothing ...
anathrax's user avatar
  • 121
-1 votes
2 answers
62 views

I have this code in './utils/url.js'. it basically makes the application/x-www-form-urlencoded content form: const ContentForm = ()=>{ let params = new URLSearchParams() const randomString =...
Mehan Alavi's user avatar
0 votes
1 answer
776 views

I am using Amazon polly for text to speech. Here is the code static async _ttsUsingPolly(text, gender, destPath, speed) { let params = { 'Text': 'Hi, my name is @anaptfox.', '...
Code Guru's user avatar
  • 15.8k
1 vote
1 answer
520 views

I'm attempting to upload a file via node from my local system to a php based remote server. My initial attempt: const readStream = fs.createReadStream(filePath); fetch(API_ENDPOINT, { ...
FabricioG's user avatar
  • 3,353
1 vote
1 answer
460 views

A fresh install of Angular 14 Ionic 6 project, installed the @aws-sdk/client-s3 (v3) package. The @aws-sdk is relying on the fs module in some of its libraries, e.g.: \node_modules@aws-sdk\shared-ini-...
Mor Sagmon's user avatar
  • 1,055
0 votes
1 answer
118 views

I currently have a local file path var localFile = "/Desktop/here/myfile.jpg"; const buffer = fs.readFileSync(localFile); const fileName = 'thumb.jpg'; I then attempt to add this to a ...
FabricioG's user avatar
  • 3,353
0 votes
2 answers
634 views

const express = require('express'); const upload = require("express-fileupload"); const editJsonFile = require("edit-json-file"); const fs = require('fs'); const app = express(); ...
spjdev's user avatar
  • 52
1 vote
3 answers
2k views

I am doing an online course about React-Native and Firebase but I came across an error. Here it is : Error: Unable to resolve module fs from Documents/code/ChatApp/node_modules/react-native-dotenv/...
HugoTek's user avatar
  • 71
0 votes
1 answer
1k views

I try to update posts but fs.unlink() doesen't remove the older files in my local folder. In my collection, the image path seem to be updated as the old path is replaced. I don't know why the old ...
Saliko's user avatar
  • 164
0 votes
2 answers
598 views

I want to get notify for each time a file is accessed in a certain directory using fanotify. I'm familiar with fanotify and generally know how to do it, my problem is with fanotify_mark function and ...
Mostafa Sarmad's user avatar
1 vote
2 answers
358 views

I'm having a very strange error where my http requests aren't sending at all. Once I send the request it just stops executing. I'm ingesting a CSV file through a ReadStream and sending requests inside ...
yourknightmares's user avatar
1 vote
0 answers
412 views

I want to be able to rename files using Node.JS and then rename them back via a separate system and then rename them again via Node.JS. When renaming a file using Node.JS fs.rename it works the first ...
Jamie Nicholls's user avatar
0 votes
1 answer
321 views

I am able to create a 300 byte JavaScript file with fs.writeFileSync, and I can see the file contents with fs.readFileSync (in a console log at least) but I don't understand how to use this file any ...
Steven's user avatar
  • 158
0 votes
1 answer
563 views

I am using Node.js to run a backend script that performs and http request using axios. The http request returns a pdf that I would like to save in my file system. However, when I tried to do this (...
Kevin Lewis's user avatar
0 votes
1 answer
336 views

I have a json prepared file with key-value pairs as arrays. I am writing a program to add new static json (in the same format) to the existing file using "fs" module. I am aware that we ...
KNIGHT MAHAJAN's user avatar
0 votes
0 answers
279 views

Is there a way to get the file path of the file that the user has uploaded? I have this input field (Angular): <div class="input-group mb-3"> <input #select type="file"...
juniorDev's user avatar
2 votes
1 answer
3k views

i tried to use fs.readdirSync and it work perfectly, but when i publish to npm and install this package to my new project, it not read my package directory instead it will read from my new project ...
Feizhang210291's user avatar

1
4 5
6
7 8
64