dir-tree-logger is a simple utility for logging directory structures to the console. It is based on TypeScript precompiled to JavaScript.
You can install dir-tree-logger using npm:
npm install dir-tree-logger
To use dir-tree-logger, follow these steps:
- Import the module into your project:
const logger = require('dir-tree-logger');
- Initialize the logger by providing the base path and optionally a list of directories to exclude:
logger.initialize('./base-route', ['node_modules', 'omitted-directory']);
- Run your application to view the directory structure log in the console.
If you'd like to contribute to this project, we welcome collaborations! Feel free to open an issue or submit a pull request.
This project is under the MIT License.
For questions or comments, you can contact Franky Melero on LinkedIn.