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

101
Views
ipfs-only-hash and JavaScript

Could somebody help me with 'ipfs-only-hash'? I'm pretty new with JavaScript and do not know how to add it to my html and js files...

I need to calculate an IPFS hash of the image file (for example, upload with <input type="file" ..>). What I found is 'ipfs-only-hash', and its possible implementation (here - hash of the string):

const Hash = require('ipfs-only-hash')
Hash.of('hi').then(console.log)

But I got all the time errors on "require", tried to change it to 'import Hash from "ipfs-only-hash"', and again got errors... Where and how should I use it in my html-js files?

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!