5 ms·
Compare to go, where you can go a very long way using "go get", "go build", "go run" etc.
by kibibu 11y ago
Compare to go, where you can go a very long way using "go get", "go build", "go run" etc.
- woah 11y agoThey just bundled some stuff into the language's CLI. This doesn't mean it somehow doesn't exist or that the language is any simpler.
- kibibu 11y agoNo, but it does mean that mostly everybody uses the same thing and doesn't worry about it.
- MadcapJake 11y agoNode.js apps can be even easier than that (only two necessary commands): `npm install` for `go get` and `node [script.js]` for `go run`. If you want to do compilation there are various solutions available to you as well!
- 0xCMP 11y agoActually you have `npm run named-command` too so you could get a go like thing going.
- Lazare 11y agoThe start and test scripts are special, and can be called directly. For an idiomatic node app, you'd clone the repo, then type `npm install` to get the dependencies, `npm test` to make sure the tests pass, and then `npm start` to run it.