- support ESM

This commit is contained in:
Yi-Cyuan Chen
2026-07-18 17:41:55 +08:00
parent da84f28777
commit 1b03e6b2b6
13 changed files with 3420 additions and 886 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
/**
* [js-sha256]{@link https://github.com/emn178/js-sha256}
*
* @version 0.11.1
* @version 0.12.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2025
* @copyright Chen, Yi-Cyuan 2014-2026
* @license MIT
*/
/*jslint bitwise: true */
+6
View File
@@ -0,0 +1,6 @@
import sha256 from './sha256.js';
const { sha224 } = sha256;
export { sha256, sha224 };
export default sha256;