Swerr CLI is a command-line interface tool designed to easily create error documentation / catelogs for your projects.
With the magic of JSDoc comments and Swerr, you can generate comprehensive error documentation in just a few simple steps.
To install Swerr CLI, use npm:
npm install -g @swerr/cliFirst of all, you need a swerr.config.js file in your project root. You can create one manually or run:
swerr initOnce you have your configuration file set up, you can run the swerr configuration with:
swerr runThis command will generate the error documentation based on your JSDoc comments and the settings in your swerr.config.js file.