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

125
Visualizações
How to call functions of a library that is included in the client side by Browserify?

I have a JavaScript library called web3js that is a back-end library and required by NodeJS. I need to apply web3js in the client side (HTML DOM), So I tried it by Browserify. I traversed all steps mentioned in Browserify guide sequencely. So, I tried these:

  1. I just write this single-line code in NodeJS file:

    var Web3=require(web3);

That is the entire of NodeJS code.

  1. npm install web3

  2. browserify main.js -o bundle.js

main.js is the same NodeJS file that just has var Web3=require(web3);. After that, I included bundle.js in my DOM:

  1. <script src="bundle.js"></script>

Now, I don't know how I should call and access web3js functions. What steps should I traverse to apply web3js there?

about 4 years ago · Juan Pablo Isaza
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