Skip to content

Commit

Permalink
docs(README): add example ouput log
Browse files Browse the repository at this point in the history
  • Loading branch information
Lsnsh committed Oct 17, 2024
1 parent b08bb05 commit 3efba4b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,35 @@
# lines-of-code-checker

[![NPM Version](https://img.shields.io/npm/v/lines-of-code-checker)](https://www.npmjs.com/package/lines-of-code-checker)
[![Build Status](https://img.shields.io/github/actions/workflow/status/lsnsh/lines-of-code-checker/tests.yml?branch=main&label=tests&logo=github)](https://github.com/lsnsh/lines-of-code-checker/actions?query=workflow%3ATests+branch%3Amain)

`lines-of-code-checker` 是一个 NodeJS 命令行工具,用于检查指定目录下超过指定行数的文件,并输出控制台日志或日志文件。

使用其他语言阅读:[English](./README.md) | 简体中文

```bash
➜ commander.js git:(master) locc -l 500
Scanning... 9 files found
Scan completed

Exclude directories: .git,node_modules

Files with more than 500 lines:

File: /Users/lsnsh/github/commander.js/package-lock.json , Lines: 6490
File: /Users/lsnsh/github/commander.js/lib/command.js , Lines: 2510
File: /Users/lsnsh/github/commander.js/CHANGELOG.md , Lines: 1419
File: /Users/lsnsh/github/commander.js/Readme.md , Lines: 1158
File: /Users/lsnsh/github/commander.js/Readme_zh-CN.md , Lines: 1072
File: /Users/lsnsh/github/commander.js/typings/index.d.ts , Lines: 970
File: /Users/lsnsh/github/commander.js/typings/index.test-d.ts , Lines: 703
File: /Users/lsnsh/github/commander.js/lib/help.js , Lines: 521
File: /Users/lsnsh/github/commander.js/tests/command.positionalOptions.test.js , Lines: 521

Total files: 9
Check date: 2024-10-17T13:12:37.935Z
```

## 特性

- 检查指定目录及其子目录中的文件行数
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,29 @@

Read this in other languages: English | [简体中文](./README-zh-CN.md)

```bash
➜ commander.js git:(master) locc -l 500
Scanning... 9 files found
Scan completed

Exclude directories: .git,node_modules

Files with more than 500 lines:

File: /Users/lsnsh/github/commander.js/package-lock.json , Lines: 6490
File: /Users/lsnsh/github/commander.js/lib/command.js , Lines: 2510
File: /Users/lsnsh/github/commander.js/CHANGELOG.md , Lines: 1419
File: /Users/lsnsh/github/commander.js/Readme.md , Lines: 1158
File: /Users/lsnsh/github/commander.js/Readme_zh-CN.md , Lines: 1072
File: /Users/lsnsh/github/commander.js/typings/index.d.ts , Lines: 970
File: /Users/lsnsh/github/commander.js/typings/index.test-d.ts , Lines: 703
File: /Users/lsnsh/github/commander.js/lib/help.js , Lines: 521
File: /Users/lsnsh/github/commander.js/tests/command.positionalOptions.test.js , Lines: 521

Total files: 9
Check date: 2024-10-17T13:12:37.935Z
```

## Features

- Check the number of lines in files within a specified directory and its subdirectories
Expand Down

0 comments on commit 3efba4b

Please sign in to comment.