Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

290
Vistas
What is the difference between Rimraf and rm -rf through ShellJS

rimraf,The UNIX command rm -rf for node,I think I can do the same thing with rm -rf through shelljs.so what is the diff

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

rimraf doesn't use/need a shell while rm -rf needs a shell.

Edit:

require('shelljs').rm() also doesn't use a shell, so I'd say they're equivalent.

Also:

It's common for a solution to have multiple implementations, so choosing one over the other comes down to requirements and personal preference.

If you're planning on using other features that are included in shelljs, it's a good pick. If you're only going to use rm -rf rimraf makes more sense since you wouldn't need all that extra functionality of shelljs.

Choose the right tool (or dependency) for the job: you can shoot down a bird with a bazooka, but why would you?

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda