๐ฎ Levitate
A tool for helping to understand APIs exported and consumed by NPM packages (or any TypeScript code).
## Install
yarn install
Develop
# Watch and rebuild the app on every file change
yarn dev
# Build the app
yarn build
# Build and bundle the app into a single executable JS file
yarn bundle
Usage
Compare exports of different package versions
# Compare exports of different versions of a package
npx @grafana/levitate compare \
--prev @grafana/[email protected] \
--current @grafana/ui@canary
List imports
# List the imports used by a program
npx @grafana/levitate list-imports \
--path <PATH-TO-A-PACKAGE>/module.ts \
--filters "@common/pages" "@grafana/data" \
--verbose
List exports
# List the exports of a compiled package
npx @grafana/levitate list-exports \
--path <PATH-TO-A-PACKAGE>/index.d.ts