Can someone translate this function from python to javascript?

I have a python script that takes a salt file and returns tests using

I do not know much about javascript, or about any of the libraries.

import systems
from hashlib import sha256

def generate_proof (salt):
secret_salt = SECRET + salt
hexadecimal = secret_salt.decode (& # 39; hex & # 39;)
test = sha256 (hexadecimal) .hexdigest ()
return test

Could someone translate or explain how I can translate this method to javascript?

I think my biggest problem is finding the library equivalent to sha256 in JS.