These are the projects for the JavaScript Level 2 module in Learn JS the Hard Way.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import fs from "fs";
|
|
|
|
const raw_log = fs.readFileSync(process.argv[2]);
|
|
|
|
const lines = raw_log.toString().split("\n");
|
|
|
|
const search = new RegExp(process.argv[3]);
|
|
|
|
// continue here, how do you find all the lines matching the regex?
|
|
// how complex can you make this? Is it necessary?
|
|
|