Skip to content

ErfanMirzapour/num-of-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

num-of-lines

npm version minified size dependency count

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

  • convert to cli
  • other programming languages support
  • arbitrary file extensions
  • change EOL (default: \r\n)
  • automatically find ignore paths using closes .gitignore
  • tests

Usage

  1. install
$ npm install -g num-of-lines
# or via yarn
$ yarn global add num-of-lines
  1. use it in your project path
~/$ cd <project-path> 
~/<project-path>$ num-of-lines

Or just use it with npx

~/<project-path>$ npx num-of-lines

About

Calculate the total number of code lines in a directory

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors