at_identifier 1.0.0 copy "at_identifier: ^1.0.0" to clipboard
at_identifier: ^1.0.0 copied to clipboard

discontinuedreplaced by: at_primitives

Core library for the syntax in the AT Protocol standard.

example/example.dart

import 'package:at_identifier/at_identifier.dart' as identifier;

void main(List<String> args) {
  identifier.isValidHandle('alice.test'); // returns true
  identifier.ensureValidHandle('alice.test'); // returns void

  identifier.isValidHandle('al!ce.test'); // returns false
  identifier.ensureValidHandle('al!ce.test'); // throws

  identifier.ensureValidDid('did:method:val'); // returns void
  identifier.ensureValidDid(':did:method:val'); // throws
}
0
likes
0
points
3.06k
downloads

Publisher

verified publisheratprotodart.com

Weekly Downloads

Core library for the syntax in the AT Protocol standard.

Homepage
Repository (GitHub)
View/report issues

Topics

#atproto #bluesky #util

Funding

Consider supporting this project:

github.com

License

unknown (license)

More

Packages that depend on at_identifier