1.1.3 • Published 5 months ago

measure-tech-debt v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

measure-tech-debt measures a folder's tech debt according to:

  • imports (e.g. handlebars, coffeescript)
  • identifiers (e.g. $)
  • file extensions (e.g. .hbs, coffee)

It's secret sauce is tsquery.

See it on NPM! License

Install

npm install -y -g measure-tech-debt

Single folder

npx measure-tech-debt .

Multiple folders

npx measure-tech-debt *

Output to JSON (default)

npx measure-tech-debt * --json
npx measure-tech-debt * --json > techdebt.json
[{"path":".","jquery imports":41,"underscore imports":10,"coffee imports":2,"handlebars imports":3,"hbs imports":0,"$ identifiers":110,".coffee extension":1,".hbs extension":0,".handlebars extension":2}]

Output of Pretty JSON

npx measure-tech-debt . --json | python -m json.tool
[
  {
    "path": ".",
    "jquery imports": 41,
    "underscore imports": 10,
    "coffee imports": 2,
    "handlebars imports": 3,
    "hbs imports": 0,
    "$ identifiers": 110,
    ".coffee extension": 1,
    ".hbs extension": 0,
    ".handlebars extension": 2
  }
]

Output to CSV

npx measure-tech-debt * --csv
npx measure-tech-debt * --csv > techdebt.csv
path,jquery imports,underscore imports,coffee imports,handlebars imports,hbs imports,$ identifiers,.coffee extension,.hbs extension,.handlebars extension
.,41,10,2,3,0,110,1,0,2%
1.1.1

5 months ago

1.1.0

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago