├── .gitignore ├── benchmarks └── sonare.bench.ts ├── biome.json ├── package.json ├── pnpm-lock.yaml ├── readme.md ├── src ├── index.ts ├── sonare.spec.ts ├── sonare.ts └── utils │ ├── generator.spec.ts │ ├── generator.ts │ ├── hash.spec.ts │ ├── hash.ts │ ├── pad.spec.ts │ ├── pad.ts │ ├── pattern.spec.ts │ ├── pattern.ts │ ├── phonemes.ts │ ├── pick.spec.ts │ ├── pick.ts │ ├── rng.spec.ts │ ├── rng.ts │ ├── sequence.spec.ts │ ├── sequence.ts │ ├── string.spec.ts │ ├── string.ts │ ├── weighted-pick.spec.ts │ └── weighted-pick.ts ├── tsconfig.json └── tsup.config.ts /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist -------------------------------------------------------------------------------- /benchmarks/sonare.bench.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/benchmarks/sonare.bench.ts -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/biome.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/readme.md -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/sonare.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/sonare.spec.ts -------------------------------------------------------------------------------- /src/sonare.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/sonare.ts -------------------------------------------------------------------------------- /src/utils/generator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/generator.spec.ts -------------------------------------------------------------------------------- /src/utils/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/generator.ts -------------------------------------------------------------------------------- /src/utils/hash.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/hash.spec.ts -------------------------------------------------------------------------------- /src/utils/hash.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/hash.ts -------------------------------------------------------------------------------- /src/utils/pad.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/pad.spec.ts -------------------------------------------------------------------------------- /src/utils/pad.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/pad.ts -------------------------------------------------------------------------------- /src/utils/pattern.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/pattern.spec.ts -------------------------------------------------------------------------------- /src/utils/pattern.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/pattern.ts -------------------------------------------------------------------------------- /src/utils/phonemes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/phonemes.ts -------------------------------------------------------------------------------- /src/utils/pick.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/pick.spec.ts -------------------------------------------------------------------------------- /src/utils/pick.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/pick.ts -------------------------------------------------------------------------------- /src/utils/rng.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/rng.spec.ts -------------------------------------------------------------------------------- /src/utils/rng.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/rng.ts -------------------------------------------------------------------------------- /src/utils/sequence.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/sequence.spec.ts -------------------------------------------------------------------------------- /src/utils/sequence.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/sequence.ts -------------------------------------------------------------------------------- /src/utils/string.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/string.spec.ts -------------------------------------------------------------------------------- /src/utils/string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/string.ts -------------------------------------------------------------------------------- /src/utils/weighted-pick.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/weighted-pick.spec.ts -------------------------------------------------------------------------------- /src/utils/weighted-pick.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/src/utils/weighted-pick.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/resend/sonare/HEAD/tsup.config.ts --------------------------------------------------------------------------------