Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

100
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda