Hacker News new | ask | show | jobs
by simplyinfinity 874 days ago
In the .net world, we have a namespace called System.IO, that houses cross platform implementations of functions to work with directories, files, searching for files, can't we just have a standard js library in the same spirit, than try to half ass emulate a shell just so someone can run rm - rf. All of this seems extremely unnecessary and a wasted time and energy to solving the wrong problem.
2 comments

The article starts by mentioning the programmatic interfaces, but the point here is to be better able to write quick, clear scripts, not full programs.

It's solving a -different- problem, and it may not be a problem that you personally have, but as I think the various excited comments rather demonstrate, it absolutely -is- a problem plenty of people -do- have and it's a really nice thing to have available for us.

There are so many minor (sometimes major) differences in how even macos(zsh/bash) and linux (bash) works, let alone windows (cmd, powershell)

A layer that abstracts these differences can be very useful for buildng CLI's and just apps with javscsript.