| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
deno add jsr:@neabyte/auth-corenpm install @neabyte/auth-core<script type="module">
import { Email, Password, Username } from 'https://esm.sh/@neabyte/auth-core'
// or pin version: .../auth-core@x.x.x
</script>Import the classes you need.
import { Email, Password, Username } from '@neabyte/auth-core'
Email.isValid('john@doe.com')
// true
Password.validate('short', { minLength: 8 })
// { valid: false, errors: ['Password must be at least 8 characters'] }
Username.normalize(' Jane_Doe ')
// 'jane_doe'Note
TypeScript types (e.g. PinResult, PasswordOptions) are exported. More details: USAGE.md
From the repo root (requires Deno).
Check — format, lint, and typecheck source:
deno task checkUnit tests — format/lint tests and run all tests:
deno task testTests live under tests/ (one file per module).
This project is licensed under the MIT license. See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |