Skip to content

Commit

Permalink
Add build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jul 10, 2023
1 parent 13727e6 commit 7032f8e
Show file tree
Hide file tree
Showing 4 changed files with 588 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# build

The directory is used to build a single file `noble-ciphers.js` which contains everything.

The output file uses iife wrapper and can be used in browsers as-is.

Don't use it unless you can't use NPM/ESM, which support tree shaking.
7 changes: 7 additions & 0 deletions build/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export {
salsa20, xsalsa20_poly1305,
chacha20, chacha8, chacha12,
chacha20_poly1305, xchacha20_poly1305,
} from '@noble/ciphers/_slow';
import { bytesToHex, bytesToUtf8, hexToBytes, utf8ToBytes } from '@noble/ciphers/utils';
export const utils = { bytesToHex, bytesToUtf8, hexToBytes, utf8ToBytes };
Loading

0 comments on commit 7032f8e

Please sign in to comment.