UCD.js

Installation

Get started with UCD.js

Installation

:::warning This documentation is for a pre-release version of UCD.js. The API and features may change before the stable release. :::

Package Installation

Install the UCD.js packages you need using your preferred package manager:

npm install @ucdjs/core
pnpm add @ucdjs/core
yarn add @ucdjs/core

Basic Usage

Start using UCD.js in your project:

import { getCharacterInfo } from '@ucdjs/core'

const info = getCharacterInfo('A')
console.log(info.name) // LATIN CAPITAL LETTER A

Explore the packages

Check out the utilities documentation to learn about all available UCD.js modules.

CLI Installation

Install the CLI globally

Install the UCD.js CLI for global access to Unicode utilities:

npm install -g @ucdjs/cli

Explore Unicode data

Use the CLI to explore Unicode characters and properties:

ucd char A
ucd block "Basic Latin"
ucd script Latin

Get help

Access help and documentation for CLI commands:

ucd --help
ucd char --help

On this page