Created
September 6, 2024 15:10
-
-
Save tichopad/6f1f190c84ad3aab7c38f713d4d3f0d6 to your computer and use it in GitHub Desktop.
List all named import from a package within a folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -rh "import.*from '@myapp/mypackage'" ./somefolder/**/*.ts | sed -n "s/.*{\(.*\)}.*/\1/p" | tr ',' '\n' | sed 's/^ *//g' | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment