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

228
Visualizações
different aws sdks and the use of `@` in require

What's the difference between aws-sdk and @aws-sdk/client-s3

I saw different codes in javascript and some libraries have the @ symbol infront of them, for aws, I saw:

var aws = require("@aws-sdk/client-s3");
var aws = require("aws-sdk");  

What's the difference between the two syntax and are they relatable?(e.g. the first syntax is referring to something inside of the aws-sdk library?) and what's the use/meaning/purpose of the @ symbol while importing a library?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

var aws = require("@aws-sdk/client-s3");

The above code snippet is an example of AWS JavaScript SDK v3


var aws = require("aws-sdk");

The above code snippet is an example of AWS JavaScript SDK v2


what's the use/meaning/purpose of the @ symbol while importing a library

From the reference linked below:

In v3 of AWS SDK for JavaScript, we achieved modularity by breaking the JavaScript SDK core into multiple packages and publishing each service as its own package. These packages are published under @aws-sdk/ scope on NPM to make it easy to identify packages that are part of the official AWS SDK for JavaScript.


Reference:

https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/

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