@compodoc/ts-stats

Gets interesting statistics about any TypeScript application

Usage no npm install needed!

<script type="module">
  import compodocTsStats from 'https://cdn.skypack.dev/@compodoc/ts-stats';
</script>

README

npm badge npm dependencies npm devDependencies MIT badge

ts-stats

Gives statistics about your TypeScript files

ts-stats

Install

Install from npm:

npm install -g @compodoc/ts-stats

Install from Yarn:

yarn global add @compodoc/ts-stats

Usage

Use ts-stats near a tsconfig.json file.

$ ts-stats

CLI Arguments

-v, --version              output the version number
-h, --help                 output usage information
-p, --tsconfig <tsconfig>  TypeScript "tsconfig.json" file (default: tsconfig.json)
-l, --loc                  Lines of code
-f, --files                Files
-d, --decorators           Decorators
-c, --classes              Classes
-i, --interfaces           Interfaces
-m, --imports              Imports
-e, --exports              Exports
-s, --specs                Specs