Skip to content

Instantly share code, notes, and snippets.

@f3r
f3r / count_imports.js
Last active October 11, 2023 11:26
Counting imports in vue3 project
/* eslint-disable no-undef */
/*
Instructions:
1. Place this script in the root directory of your Vue.js project.
2. Run `node count_imports.js` to count the occurrences of each imported file in `.vue` files within the `src` directory.
3. Add the optional command-line argument `--show-files` if you also want to see the file references for each import.
For example, run `node count_imports.js --show-files`.
Output Example:
@f3r
f3r / logo.json
Created October 10, 2024 17:51
edukami logo
{
logo: true
}