Skip to content

MattAndDev/ts-done-yet

Repository files navigation

ts-done-yet

How far is your typescript migration?

usage

cli

npm i -g ts-done-yet
ts-done-yet ./my-project/src

code

import { tsDoneYet, percentage } from 'ts-done-yet'
;(async function () {
  const { ts, all } = await tsDoneYet('./my-project/src')
  const filesPercentage = percentage(ts.files, all.files)
  const linesPercentage = percentage(ts.lines, all.lines)
})()

why

When incrementally adopting typescript it's important to keep track of your progress.

Also, do NOT use any.