https://github.com/1337programming/ts-complexity
Complexity Tester for TypeScript, based on TSMetrics
https://github.com/1337programming/ts-complexity
complexity complexity-tester typescript
Last synced: 10 months ago
JSON representation
Complexity Tester for TypeScript, based on TSMetrics
- Host: GitHub
- URL: https://github.com/1337programming/ts-complexity
- Owner: 1337programming
- Created: 2017-07-14T16:21:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-17T13:34:36.000Z (over 8 years ago)
- Last Synced: 2024-04-25T03:01:35.781Z (almost 2 years ago)
- Topics: complexity, complexity-tester, typescript
- Language: JavaScript
- Size: 6.84 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TS Complexity
Complexity Tester for TypeScript, based on TS Code Metrics
Run with the command ts-complexity [FILES], where [FILES] is a glob pattern.
## Installation
To install, run `npm install ts-complexity` or `npm install -g ts-complexity` for a global installation.
## Usage
Run the command `ts-complexity` from the shell. This will make sure all complexity is below the threshold.
### Options
- max-complexity (Default: 15) The maximum TS Code Metrics complexity to allow.
- pattern (Default: '{,!(node_modules)/**/}*.ts') The glob pattern of files to run.