An open API service indexing awesome lists of open source software.

https://github.com/thatgirldorian/ls-command

This is my interpretation of the ls command created with node. It's a customised command that will list all the files in a directory.
https://github.com/thatgirldorian/ls-command

command-line-tool javascript node-js

Last synced: 3 months ago
JSON representation

This is my interpretation of the ls command created with node. It's a customised command that will list all the files in a directory.

Awesome Lists containing this project

README

        

# ls-command
This is my interpretation of the ls command created with node. It's a customised command called 'dls' that will list all the files in a directory. These files will also show up in a color-coded pattern, just like the way it does for the regular ls command. The files will be colored magenta, and the directories, cyan.

Issues faced & resolution:


I got a couple of errors when trying to use the chalk package because it's an ES6 module. The main error I was getting was: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module.

I resolved this by adding the line, "type": "module" to my package.json file and changing the way I added my packages: switched from require to import.

Technology used:

- JavaScript
- GitHub
- The Chalk package

Screenshot:


Screen Shot 2022-05-15 at 6 45 31 PM