mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Comply with ESM syntax.
This commit is contained in:
@@ -170,8 +170,5 @@ function SHA1 (message) {
|
||||
return HH
|
||||
}
|
||||
|
||||
console.log(SHA1('A Test'))
|
||||
console.log(SHA1('A Test'))
|
||||
|
||||
// export SHA1 function
|
||||
module.exports = SHA1
|
||||
export { SHA1 }
|
||||
|
||||
@@ -185,4 +185,4 @@ function SHA256 (message) {
|
||||
}
|
||||
|
||||
// export SHA256 function
|
||||
module.exports = SHA256
|
||||
export { SHA256 }
|
||||
|
||||
Reference in New Issue
Block a user