Answer the question
In order to leave comments, you need to log in
Some NodeJS questions?
Surface surfing does not answer questions of interest, but to understand the topic in order to later understand that it does not suit me, moreover, as far as I understand, the system is not easy.
A number of questions follow from this:
- is it possible to write scripts for Linux, OS X on NodeJS?
- can NodeJS be used like Bash in everyday life,
create: a directory, a file;
move: directory, file;
copy: directory, file;
view: directory, file;
delete: directory, file;
…
Answer the question
In order to leave comments, you need to log in
it is possible to use asm as bash... a question what for to create crutches. There is a solution for the right tasks, and they use it. with regards to running js scripts in the console (by cron), yes, this is not a problem, all scripts in the node can be run through node scriptname.js . As for working with files, keep https://nodejs.org/api/fs.html
Last year, we sat at work and thought about what to write scripts on, so that it would work in both Windows and Linux (well, maybe with minor changes) and decided to write once on a node. I wrote a program that makes backups from docker and just saves files, everything works and the things that you described also work. There are a bunch of modules for a node for a lot of things, for some reason it so happened that many people think that a node is only for the web (although it is very convenient).
When you have a little experience, you can quite quickly write web muzzles to some useful things. I wrote for apache derby ( here ), then three days later I screwed up active directory authentication.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question