sloc

simple tool to count SLOC (source lines of code) (by flosse)

Sloc Alternatives

Similar projects and alternatives to sloc

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better sloc alternative or higher similarity.

sloc reviews and mentions

Posts with mentions or reviews of sloc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-28.
  • The #1 tip to familiarize with new JavaScript codebases
    4 projects | dev.to | 28 May 2021
    With long functions normally there comes large files as well. People tend to put everything into one file if they also put a lot into one function. So in theory we could take the lines of code as a measurement as well. There are a lot of utility packages out there that solve this problem. One of these tools is called sloc. It will output the number of lines of code within a file. But do not use it directly. The tool I mentioned before includes this by default.
  • “Hello, World ” in zero lines of code
    1 project | news.ycombinator.com | 4 Jan 2021
    The title of the stackexchange discussion is a little misleading. It really is: '"Hello, World" in what sloc thinks is zero lines of source code'

    Most of the top solutions seem to take advantage of bugs in the way sloc tries to parse commented lines. e.g. many are ////

    And I'm surprised I don't see a related bug issue in the git repo: https://github.com/flosse/sloc/issues

    Still this is a fun read. I'm curious to see what other tricks are out there.

Stats

Basic sloc repo stats
2
940
6.5
3 months ago

flosse/sloc is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of sloc is CoffeeScript.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com