Tiny hashing module that uses the native crypto API in Node.js and the browser
by sindresorhusJavaScript
Last 12 weeks · 1 commit
4 of 6 standards met
We are using on node and instrument our code with opentelemetry through the environment variable (e.g. ). When a new Worker is created it respects that environment variable. Since we start a metrics server in the instrumentation, we try to instantiate a new server on the same port and of course that fails, because the server is already running on that port. Is it possible to work around that issue? I am not sure that not passing any environment variables into the worker is the correct thing to do, but since the code executed on the worker does not contain any dependency on such a variable it might be best to not inherit the parent process environment.
Repository: sindresorhus/crypto-hash. Description: Tiny hashing module that uses the native crypto API in Node.js and the browser Stars: 645, Forks: 27. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: browser, crypto, hash-functions, hashing, isomorphic, nodejs, npm-package, sha256. Latest release: v4.0.1 (8mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 85%. Top contributors: sindresorhus, Richienb, stroncium, bjornstar, davixyz, BendingBender, derhuerst, mwanago, chocolateboy.