Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

295
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda