A line of code statistics tool and can specify file type
npm i stat-line -g
line [path] [options]
If you want to use [path]. You need to use relative path. default [path] is [./]
-r
Open recursion folders, no recursion by default-t
Specify the type of file to be counted-e
specify exclude folder-h
Display help information
- All
JS
files in the current path are counted by default
line
- If you need recursion all folder, please use
-r
line -r
- count current path
scss
file lines
// Methods a
line -t scss
// Methods b
line ./ -t scss
- count current path
scss
css
js
file lines
line -t scss css js
- custom path
// [./src] Change to your custom relative path
line ./src
- Display help information
line -h
Please refer to the help documentation. line -h
- Specify folders that do not need statistics
- can recursion
- can specify file type
- help documentation