5 ms·
I've enjoyed trying to use Deno for a small new service at $WORK. Sadly had to give up and retreat back to Node due to missing support for private NPM repositor
by ferriswil 3y ago
I've enjoyed trying to use Deno for a small new service at $WORK. Sadly had to give up and retreat back to Node due to missing support for private NPM repositories and lack of Datadog tracing support.
Their compatibility is getting better and better, so I'm confident Deno will eventually be a clear "better Node".
- norman784 3y agoNow that there is also bun, both javascript tooling/runtime ecosystem will improve faster, now there are 3 competing mainstream runtimes (but as now the only one that is production ready imho is node)
- Hamcha 3y agoOne use case where pure Deno works for me is shell scripts. Writing them in Deno is quite pleasant and they usually don't need many dependencies. Plus you can always host then and just "deno run <url>" from any machine that has it. It used to be a problem that you had to know permissions ahead of time but now they interactively ask you for it which makes the scary "-A" flag much less needed.
- JimDabell 3y agoYou can also compile them to standalone executables easily with `deno compile`.
- satvikpendem 3y agoI wonder how that works, do they ship the entire Deno runtime with the executable à la Electron?
- Hamcha 3y agoYes, a `console.log()` compiles to a 78.46MiB .exe
- satvikpendem 3y agoWow, sounds like I'll stick with Rust.
- wirelesspotat 3y agoWhat was the issue you encountered with private registries on Deno? Based on Deno's docs, it looks like they're supported[0] [0] https://docs.deno.com/runtime/manual/basics/modules/private https://docs.deno.com/runtime/manual/basics/modules/private
- ferriswil 3y agoWhat I'm looking for is the equivalent of this .npmrc contents to access an NPM module on Github Packages: //npm.pkg.github.com/:_authToken=${AUTH_TOKEN} @myEmployer:registry=https://npm.pkg.github.com/ My impression is that the document you've linked isn't related to their NPM compatibility, but perhaps I need to look more into it.
- ferriswil 3y agoHere is the relevant Github issue with a better explanation: https://github.com/denoland/deno/issues/16105 https://github.com/denoland/deno/issues/16105