Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
I care a lot

Romain Vincent romain20100

🐢
I care a lot
View GitHub Profile
@romain20100
romain20100 / find_missing_es6_imports.py
Last active Apr 6, 2021
Find all missing imports of components in a javascript es6 project
View find_missing_es6_imports.py
"""Find missing imports
Suitable for javascript projects using es6 imports.
Example uses:
Assuming SCRIPT is <path/to/find_missing_es6_imports.py>
First argument is a glob pattern to find components
Following arguments are paths to files or folders relative to current directory
- $ python3.9 SCRIPT '**/*.vue' components