num-of-lines
v0.4.0
Published
Calculate the total number of code lines in a directory
Downloads
9
Readme
num-of-lines
Calculate total number of code lines in a specified directory.
Currently it's written for front-end projects and only counts these files:
.html.css-.scss.js-.jsx.ts-.tsx(except.d.ts).vue
WIP
- [x] convert to cli
- [ ] other programming languages support
- [ ] arbitrary file extensions
- [ ] change EOL (default:
\r\n) - [x] automatically find ignore paths using closes
.gitignore - [ ] tests
Usage
- install
$ npm install -g num-of-lines
# or via yarn
$ yarn global add num-of-lines- use it in your project path
~/$ cd <project-path>
~/<project-path>$ num-of-linesOr just use it with npx
~/<project-path>$ npx num-of-lines