Replicate ls

This starts you off with a simple command line parsing library and a globbing library to get going named fast-glob. "Globbing" is what you're doing when you use regular expression patterns to match files like this:

ls *.txt

The fast-glob library is a good library with only one quirk to watch out for: It will not convert \ (backslash) characters to / in your glob. That means if you use C:\Users\zed\*.txt it will fail. You'll have to convert all \ to / on Windows.

File Attributes

Learn JavaScript Today

Register today for the Beginner Basics course and get the new releases by just paying the difference. There's also special discounts for existing customers when new courses are released.


Still Not Sure? Check out more curriculum!