Installation
Install the SDK using npm or yarn:Quick Start
Import and initialize the client with your API key:TypeScript Support
The SDK is written in TypeScript and includes full type definitions:Error Handling
The SDK throws typed errors that match the API error responses:API Reference
UsernameClient
Main client class for interacting with the username.dev API.
Constructor
Methods
check(username: string): Promise<UsernameCheckResponse>
Check if a username is reserved.
Parameters:
username(string): The username to check
UsernameCheckResponse
Example:
Resources
- npm package - View on npm
- GitHub repository - Source code and issues
- API Documentation - Full API reference