Forrest logo
back to the tokei tool

tokei:tldr:ec95b

tokei: Get a report for a directory excluding `.min.js` files.
$ tokei ${path-to-directory} -e ${*-min-js}
try on your machine

The command is using the tokei tool to analyze the code statistics of files within a specified directory and exclude any files with the extension *-min-js.

Here is a breakdown of the command:

  1. tokei: tokei is a command-line code statistics tool that can analyze code files and provide information like lines of code, number of files, etc.

  2. ${path-to-directory}: This is a placeholder for the path to the directory you want to analyze. You need to replace ${path-to-directory} with the actual path to the directory on your system.

  3. -e: This option is used to specify file extensions to exclude from the analysis.

  4. ${*-min-js}: This is a placeholder for the file extension pattern you want to exclude from the analysis. The ${*-min-js} syntax represents a wildcard to match any files with the extension -min.js. For example, if you have files like file1-min.js, file2-min.js, etc., they will be excluded from the analysis.

To use the command, replace ${path-to-directory} with the desired directory path and ${*-min-js} with the actual file extension pattern you want to exclude.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tokei tool