Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
// Public root barrel for `@suaveplan/password-generator`. Explicit named
// re-exports per CLAUDE.md §10.
export {
AMBIGUOUS,
buildEffectiveCharset,
type CharsetOptions,
DIGITS,
LOOKALIKES,
LOWERCASE,
SYMBOLS,
UPPERCASE,
} from "./charsets/charsets.js";
export {
assertStrength,
type EntropyEstimate,
type EntropyOptions,
estimateEntropy,
estimatePassphraseEntropy,
} from "./entropy/entropy.js";
export {
PWGEN_CODES,
PwgenError,
type PwgenErrorCode,
pwgenError,
} from "./errors/codes.js";
export {
entropyBits,
errorsTotal,
type GenerateMode,
generateDurationMs,
recordError,
recordGeneration,
} from "./observability/metrics.js";
export { generatePassphrase } from "./passphrase/passphrase.js";
export type {
CapitalizationMode,
GeneratePassphraseOptions,
WordlistRef,
} from "./passphrase/passphrase.types.js";
export { generatePassword } from "./password/password.js";
export type {
GeneratePasswordOptions,
PasswordMode,
RequiredClasses,
} from "./password/password.types.js";
export {
generatePronounceablePassword,
PRONOUNCEABLE_CONSONANTS,
PRONOUNCEABLE_VOWELS,
} from "./password/pronounceable.js";
export { generatePin } from "./pin/pin.js";
export { defaultRng } from "./random/default-rng.js";
export { shuffleInPlace } from "./random/fisher-yates.js";
export { randomInt } from "./random/random-int.js";
export {
EntropyOptionsSchema,
GeneratePassphraseOptionsSchema,
GeneratePasswordOptionsSchema,
} from "./schemas/schemas.js";
export { EFF_LONG_WORDLIST } from "./wordlists/eff-long.js";
export { EFF_SHORT_WORDLIST } from "./wordlists/eff-short.js";
export {
getWordlist,
listWordlists,
MIN_WORDLIST_SIZE,
registerWordlist,
} from "./wordlists/registry.js";