3 comments

[ 3.3 ms ] story [ 24.8 ms ] thread
Hello again Hacker News!

I got a lot of love last time I shared an open source project on HN (and by a "lot" I mean 20 stars on GitHub, HA HA).

The point is, I always get so much value out of HN, and want to keep giving back. Here's a starter project template to get you going building cross-platform (Windows, Mac, Linux) CLI applications using plain-old TypeScript or node!

I write lots of little CLI applications and this gets me going pretty fast with a running CLI, a place to write tests, and a single-command to build everything.

Free forever + open source. Comments/concerns/suggestions are welcomed!

Enjoy and thanks for reading.

So, you’re using JavaScript. And npm.

And the average JavaScript program with npm has how many total dependencies? Did I hear the number 1900 recently?

So, remind me why I would intentionally choose to import this county-size tire fire into my life?

Brad,

Country-size tire fire. That's funny.

But your statement is 100% true. Every dependency in the node ecosystem and on NPM seems to have a hundred and one sub-dependencies, which each in turn have a hundred and one more. It would be most efficient to write a CLI application in something like C, Rust, Go, Nim, or something similar.

This starter project is less about the "best and optimal way of building CLI applications" and more about "building CLI applications with TypeScript".

Many developers feel at home with TypeScript and this just puts everything in one place to enable them to build CLI applications with the language they love, and the rich NPM package ecosystem they depend on.

Thanks for your comment!