Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to read in files, parse and add to another file

Status
Not open for further replies.

jimbospain

Programmer
Oct 1, 2020
1
0
0
ES
hey guys!
I'm struggling with a bit of javascript code

I'm using lib fs

'use strict';
const fs = require('fs');

And I want to read in a bunch of files from a given directory,
then parse them to extra everything after the word "export", then create a new file that has
module models {

// insert everything here that is extracted from the files

}

its not going well.

anyone can help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top