1.1.6 โ€ข Published 2 years ago

tloc v1.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

๐Ÿ“œ TLOC (Tomper Lines Of Code)

Find out how many lines of code you have written for your project.

๐Ÿ“ˆ Installation

(Install the package globally)

npm install -g tloc

๐Ÿงช Usage

The tloc command can be used to calculate the number of lines of code by providing the location of the file or folder. Some additional options and flags that can be used:

  1. -l or --log: Adding some additional information to the console.

  2. --: Ignoring files/directories (This option must be used at the last)

Example: Getting number of lines

# path to folder
tloc ./src

# path to file
tloc ./src/index.ts

Example: Logging additional information

tloc ./src -l

# or

tloc ./src --log

Example: Ignoring files/directories

# Remove particular file or directory
tloc ./src -- ./src/dummyData.js ./temp

# Remove all matching occurences
tloc ./src -- dummyData.js temp

# While using other options, use the ignore option at last
tloc ./src -l -- dummyData.js ./temp

โœจ Features

  • Calculates the number of lines in each file by recursively moving through the directories.
  • Ignore specific files/directories or all matching occurrences.
  • Implemented using Depth First Search (DFS) algorithm.

โš™ Tools and Technologies used

  1. Typescript
  2. Minimist
  3. Chalk

๐Ÿ›  Local Installation and setup

  1. Clone the repo to your local machine.
  2. Install the required dependency using:

    npm install

๐ŸŽ Creating production built

  1. Build the package using:

    npm run build

๐Ÿ˜Ž Made with ๐Ÿ’™ by

โš– License

GPL-3.0

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago