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.
 
 
 

21 lines
361 B

import path from "path";
import glob from "fast-glob";
import { program } from "commander";
program
.name("find")
.description("find replica")
.option("--name");
program.parse();
const options = program.opts();
if(program.args.length > 0) {
const results = glob.sync(program.args[0]);
for(let result of results) {
console.log(result);
}
}