H
H
hamych2020-10-02 21:59:05
Node.js
hamych, 2020-10-02 21:59:05

How to extract data from databases that are in different folders in JS?

There is a folder for example "data", in it there are other folders in which the file "Base.json" is located. Such a file contains an array of data, which contains the "name: value" object. How can I use a script to extract these values ​​from each folder => file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-10-02
@Alexandre888

you don't have to rely on someone to decide to write all the code for you - this is a fundamentally wrong statement)
basically, you will need node.js and its native fs module.
and then, through fs.readFile() and JSON.parse - forward, and with the song.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question