is it fine to use fs.readline and fs.writeline over and over as a system to store data?

i use fs.readline and fs.writeline as an alternative to using db's, its an economy bot but its only for like 1 server, which is full of my friends. is it gonna be fine? like is there gonna be any issues with it? maybe some issues about fs.read/write timing that just collided or anything? sorry if this isnt the right place to ask, i didnt know where else to ask since this is related to discord bots
6 Replies
d.js toolkit
d.js toolkitβ€’2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - βœ… Marked as resolved by OP
the smiths
the smithsβ€’2mo ago
the data in questions are like: each user's own db, contain eco items and such
motylek
motylekβ€’2mo ago
npm
nope.db-nl
nope.db mod with continued development.. Latest version: 1.0.30, last published: 5 days ago. Start using nope.db-nl in your project by running npm i nope.db-nl. There are no other projects in the npm registry using nope.db-nl.
the smiths
the smithsβ€’2mo ago
it wont have issues?
motylek
motylekβ€’2mo ago
no because i published this module its a mod of a JSON database module that didnt get any update since 2021
the smiths
the smithsβ€’2mo ago
πŸ˜… do you put a code to solve issues if theres any or is using fs itself already fine? i want to keep my code lightweight 1. i didnt know its existence till now 😒 2. i love using jsons because they're easy to edit and its lightweight is sqlite easy to edit? yeah i was thinking about that is sqlite easy to learn? and once you get the hang of it its REALLY flexible? ok which one do you recommend, prisma or sequelize be my rolling dice "If youβ€˜re not comfortable learning SQL" whats the deal with sql? im genuinely genuinely asking btw 😭 alright alright thanks, i will close the thread