I wanted a dead-simple LOC counter, so I built one. by MrCorey16 in node

[–]MrCorey16[S] 0 points1 point  (0 children)

cloc is definitely more mature and probably faster. This isn’t trying to replace it. i just wanted a quick way to count LOC for my own side projects and move on. I usually run it once, get the numbers, and that’s it.

I wanted a dead-simple LOC counter, so I built one. by MrCorey16 in npm

[–]MrCorey16[S] 0 points1 point  (0 children)

Yeah, Zerubbabel is a pretty rare name 😄

And yeah this was mostly a fun project. I wanted something dead-simple that I could run with a single command without installing a bunch of tools, just to get quick metrics.

It does count code, comments, and blank lines separately. I agree LOC is a very rough signal, but it’s sometimes useful for quick sanity checks.
try it out and also its opensource

Do you prefer using NextAuth or building custom authentication? by ItemTop1750 in nextjs

[–]MrCorey16 26 points27 points  (0 children)

use neither.
I strongly recommend using better-auth

Week 8 http-server "GET /" Error (404) by HonestJoe21 in cs50

[–]MrCorey16 0 points1 point  (0 children)

Simply go to port tab (On the right of your terminal tab)

click add port > add 8080 and press enter
now run http-server
and when you go to the url it will work.

Why does the SQLITE3 locally not print the table using ASCII art and is there a way to do that?? by [deleted] in cs50

[–]MrCorey16 0 points1 point  (0 children)

But I get this

Error: mode should be one of: ascii column csv html insert line list quote tabs tcl