@atproto/handle
v0.0.1
Published
Validation logic for AT handles
Downloads
105
Keywords
Readme
Handle
Validation logic for AT handles
Usage
import * as handle from '@atproto/handle'
isValid('alice.test', ['.test']) // returns true
ensureValid('alice.test', ['.test']) // returns void
isValid('al!ce.test', ['.test']) // returns false
isValid('al!ce.test', ['.test']) // throws
License
MIT