Reddit | node.js
0 FOLLOWERS
News and links for node.js developers from the Reddit community.
Reddit | node.js
4m ago
I'm building a web application using react and express. It takes multiple text files as an input, reformats them on the backend, stores all of them into a zip file on the backend and then I try to download this zip file from the react frontend. Whenever i click the download link on the frontend for the zip, i download the file but somethings gone wrong meaning i can't unzip it, error message : unable to expand fileName.zip. It is in an unsupported format. But if i just try and open it directly from my computer on the server, it opens fine.
Here are the main pieces of code being used and the d ..read more
Reddit | node.js
4m ago
? Attention Developers ?: challenge #24 is another ? ? ? chance to shine and show how good you are!
The developer of challenge #13 worked on remediating the vulnerability found in the code, do you think you could still break in?
Get the list of CRM Users from the internal network to win the flag!
Link to the challenge: https://wizer-ctf.com/?id=zBz30i
Oh... and don't forget to check out the summary of challenge #18 which is retiring today!
https://wizer-ctf.com/writeups/ctf18.html
Code Wizer!
https://preview.redd.it/v18wl7gfo3rc1.png?width=1482&format=png&auto=webp&s=5545bbf445df1 ..read more
Reddit | node.js
3h ago
Hello
I have 5 customers (tenants) and each tenant has 100-800 employees and at the end of the month I send for each employee a payroll.
So I have to send more then 1000 pdfs but it should not be finish directly so it can be done within 24 hours.
So what’s the best way to go with it ? Which libary and which queue would you prefer for this ?
submitted by /u/Far-Mathematician122
[visit reddit] [comments ..read more
Reddit | node.js
4h ago
I made a script that fills a form and then it stops because of captcha. Is there a way I can wait for user to put captcha and then resume script? And is there any ways to bypass these captcha? Sample attached.
https://preview.redd.it/zxjn1g6ym2rc1.png?width=458&format=png&auto=webp&s=d5e16a26be55fcfe06cec2df83e096e297a18471
submitted by /u/hafi51
[visit reddit] [comments ..read more
Reddit | node.js
5h ago
I ran `npm audit --fix` and it automatically added overrides. I have not seen this package naming convention.
submitted by /u/adamgoodapp
[visit reddit] [comments ..read more
Reddit | node.js
6h ago
I want to print tabular data in pdf using node.js
I tried pupeteer but it taking 5 min to generate 500 pages.
Tried jspdf but, there is no method to convert html to Pdf, also issue with multipages and content is not getting fit in pdf properly.
html-pdf is deprecated.
wkhtmltopdf is good but can't use .exe file of wkhtmltopdf due to application restrictions.
Plz suggest better library so I can print atleast 1,000 pages with in seconds or max 1-2min.
submitted by /u/AliveRule3532
[visit reddit] [comments ..read more
Reddit | node.js
6h ago
https://www.npmjs.com/package/free-deepl
submitted by /u/NoAbility9408
[visit reddit] [comments ..read more
Reddit | node.js
8h ago
Any recommendations for stable and maintained RSS feed (atom and rss) parsers in node? I'm looking for a library, not a desktop etc client, that I can use in my app.
submitted by /u/Anxious_Lunch_7567
[visit reddit] [comments ..read more
Reddit | node.js
8h ago
I am trying to produce a PDF from plain text Markdown. But the libraries I use in the backend use Puppeteer. The application I developed is in monoliths architecture. Therefore, I am sceptical. Is it compatible with monolith architecture to generate PDF? Or should I create a separate service with RabbitMQ between them to generate PDF?
submitted by /u/DustyDeveloper
[visit reddit] [comments ..read more
Reddit | node.js
8h ago
I have this problem in my console:
results { error: { message: 'unknown api_key' } }
It happens because I'm trying to get images from my Cloudinary account, I've verified my cloud name, api key, api secret. The problem happens in this part of my code:
export async function getStaticProps() {
const results = await fetch(`https://api.cloudinary.com/v1\_1/${process.env.CLOUDINARY\_CLOUD\_NAME}/resources/image\`, {
headers: {
Authorization: `Basic ${Buffer.from(process.env.CLOUDINARY_API_KEY + ':' + process.env.CLOUDINARY_API_SECRET).toString('base64')}`
}
}).then(r => r.json());
console.log ..read more