stat-line

0.3.19 • Public • Published



stat-line


A line of code statistics tool and can specify file type

Coverage Status

中文文档

Installation

  npm i stat-line -g

Usage

  line [path] [options]

path

If you want to use [path]. You need to use relative path. default [path] is [./]

options

  • -r      Open recursion folders, no recursion by default
  • -t      Specify the type of file to be counted
  • -e      specify exclude folder
  • -h      Display help information

Examples

  • All JS files in the current path are counted by default
  line   
  • If you need recursion all folder, please use -r
  line -r
  • count current path scss file lines
  // Methods a
  line -t scss

  // Methods b
  line ./ -t scss 
  • count current path scss css js file lines
  line -t scss css js
  • custom path
  // [./src] Change to your custom relative path
  line ./src
  • Display help information
  line -h

More features

Please refer to the help documentation. line -h

todoList

  • [x] Specify folders that do not need statistics
  • [x] can recursion
  • [x] can specify file type
  • [x] help documentation

Package Sidebar

Install

npm i stat-line

Weekly Downloads

1

Version

0.3.19

License

MIT

Unpacked Size

28 kB

Total Files

8

Last publish

Collaborators

  • ty_valor