Photographer when I can, Programmer always

Node Counter

6 February 2017 node.js

A command line program to count lines in a source code file

Installation

From npm.

$ npm install code-counter

From GitHub. This is not recommended as the package may be broken

$ npm install git+https://github.com/GOGO98901/Node-Counter.git

Usage

  Usage: counter [options] [filterRegex...]

  A command line program to count lines in a source code file

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -d, --directory <path>  The directory to start the scan
    -g, --nogitignore       Turns off the ability to use gitignore
    -o, --output            Displays the file currently being read

Supported languages

  • Assembly
  • Batch
  • Brightscript
  • CoffeeScript / IcedCoffeeScript
  • C / C++
  • C#
  • Clojure / ClojureScript
  • CSS / SCSS / SASS / LESS / Stylus
  • Crystal
  • Dart
  • Erlang
  • Go
  • Groovy
  • HTML
  • Handlebars
  • Haskell
  • Haxe
  • Hilbert
  • hy
  • Jade
  • Java
  • JavaScript
  • JSX
  • Julia
  • Kotlin
  • Lua
  • LiveScript
  • Nix
  • Mochi
  • Monkey
  • Mustache
  • Nim
  • OCaml
  • Perl 5
  • Python
  • PHP
  • R
  • Racket
  • Ruby
  • Rust
  • Scala
  • Shell
  • Squirrel
  • SVG
  • Swift
  • Objective-C / Objective-C++
  • Typescript
  • Visual Basic
  • Yaml
  • XML

License

MIT © Rory Claasen