Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/src/core-validators/characters.ts

Storage for private, distributed, offline-first applications.
Go to Latest
import * as earthstar from "https://deno.land/x/earthstar@v10.2.0/src/core-validators/characters.ts";

Variables

Lowercase alphabetical characters.

Uppercase alphabetical characters.

All characters allowed in an identity's public address.

All characters allowed in an identity's pub key.

All characters allowed in an identity's short name.

All characters allowed in base32.

All digits.

All characters permitted in a document's path.

All special characters permitted in a document's path.

All characters allowed in a share's address.

All characters allowed in a share's key.

All characters allowed in a share's name.

Functions

Check that a string contains only printable ASCII

Check that a string only contains character from a string of allowed characters.