Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sntsabode/loc.js
A small, no dependencies tool that counts the number of lines in a project.
https://github.com/sntsabode/loc.js
cli lines-of-code no-dependencies nodejs typescript
Last synced: 3 days ago
JSON representation
A small, no dependencies tool that counts the number of lines in a project.
- Host: GitHub
- URL: https://github.com/sntsabode/loc.js
- Owner: sntsabode
- License: mit
- Created: 2022-01-24T21:04:59.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T16:18:36.000Z (almost 3 years ago)
- Last Synced: 2024-12-16T17:04:38.418Z (about 1 month ago)
- Topics: cli, lines-of-code, no-dependencies, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 288 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
loc.js 📝
***loc.js*** is a simple, no dependencies command line tool that counts the number of lines in a project.
## Prerequisites
***Use other verions at own risk***
* node >= 12.x.x
## Installation
### Install from ***npm***
```sh
npm i -g @snts.abode/loc.js
```Might have to use sudo on ***unix systems***
```sh
sudo npm i -g @snts.abode/loc.js
```### Install from source
```sh
cd loc.jsyarn i
```If the above command doesn't work due to admin privileges ***(unix system)***, try
```sh
cd loc.jsyarn i:sudo
```## Usage
```sh
cd my-projectloc.js
```### Options:
* `-y` or `--yes` - (`boolean`): Don't ask any questions.
* `-p` or `--paths` - (`string[]`): Enter paths ***loc*** should work in, relative to the cwd.
* `-l` or `--log` - (`y`|`n`): Whether or not the process should log.
## Author
👤 **Sihle Masebuku **
## Show your support
Give a ⭐️ if this project helped you!