Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!