UCD.js Docs
CLI

lockfile

Inspect and validate UCD store lockfiles

ucd lockfile

Inspect, validate, and hash UCD store lockfiles (ucd.lock).

ucd lockfile <subcommand> [...flags]

info

Display a summary of the lockfile in the current store.

ucd lockfile info [...flags]

Flags

FlagDescription
--store-dirDirectory where the UCD store is located (default: current directory)
--jsonOutput lockfile information as JSON

Examples

ucd lockfile info
ucd lockfile info --store-dir ./ucd-data --json

validate

Validate the lockfile against the expected schema.

ucd lockfile validate [...flags]

Flags

FlagDescription
--store-dirDirectory where the UCD store is located (default: current directory)
--jsonOutput validation results as JSON

Examples

ucd lockfile validate
ucd lockfile validate --store-dir ./ucd-data

hash

Compute the content hash of a UCD file. Useful for debugging integrity issues.

ucd lockfile hash <file-path> [...flags]

Flags

FlagDescription
--strip-headerStrip the Unicode file header before hashing (default: false)
--compareCompare the computed hash against a provided hash
--jsonOutput hash information as JSON

Examples

ucd lockfile hash ./ucd-data/16.0.0/ucd/UnicodeData.txt
ucd lockfile hash ./ucd-data/16.0.0/ucd/UnicodeData.txt --strip-header
ucd lockfile hash ./ucd-data/16.0.0/ucd/UnicodeData.txt --compare abc123

On this page