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.
- Host: GitHub
- URL: https://github.com/thatgirldorian/ls-command
- Owner: thatgirldorian
- Created: 2022-05-10T20:48:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T17:21:02.000Z (about 3 years ago)
- Last Synced: 2025-01-03T18:24:05.396Z (5 months ago)
- Topics: command-line-tool, javascript, node-js
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 packageScreenshot:
![]()