Initialize the CANT parser With napi-rs native addons, this is a no-op (native modules load synchronously). Kept for backward compatibility with code that previously called this for WASM init.View in API reference
import { initCantParser, parseCANTMessage } from '@cleocode/cant';await initCantParser(); // no-op, kept for compatconst result = parseCANTMessage('/done @all T1234');
Parse a CANT message If the native addon is available, uses the Rust cant-core parser via napi-rs. Falls back to a basic JavaScript implementation if the native addon is not loaded.View in API reference