Installation
Get started with UCD.js
Installation
This documentation is for a pre-release version of UCD.js. The API and features may change before the stable release.
UCD.js is a modular project, meaning you can install only the specific packages you need. The most common starting point is the CLI.
CLI Installation
The UCD.js CLI provides command-line utilities for Unicode exploration, store management, and code generation.
Install the CLI globally
npm install -g @ucdjs/cliExplore Unicode data
Use the CLI to explore Unicode characters and properties directly from your terminal:
ucd char A
ucd block "Basic Latin"
ucd script LatinGet help
Access help and documentation for CLI commands:
ucd --help
ucd char --helpSee the CLI reference for the full list of commands and flags.
Package Installation
If you're building on top of UCD.js programmatically, install the packages you need:
npm install @ucdjs/clientBasic Usage
import { createClient } from '@ucdjs/client';
const client = createClient();
const data = await client.getCharacter('A');
console.log(data);Check out the Client API Reference to learn more about interacting with the UCD.js client.