Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@compodoc/ts-stats

compodoc42MIT1.1.1TypeScript support: included

Gets interesting statistics about any TypeScript application

typescript, statistics

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

changelog

1.1.0 (2018-04-13)

Bug fixes

  • cli: defaults were not taken into account. (43cec9ab)
  • cli: package.json file not available. (1b63dfb3)

1.1.0 (2018-04-12)

Features

  • stats: classes, interfaces, exports, imports, specs (describe, it, xdescribe, xit, fdescribe, fit, expect), LOC (median, mode, average, total)

1.0.0 (2018-04-10)

Initial release