@duckalization/id
v0.1.0
Published
Content-derived message IDs shared by the duckalization extractor, runtime, and bundler plugin.
Maintainers
Readme
@duckalization/id
Canonicalization and hashing for duckalization message IDs.
Apps get this transitively. Do not add it as a direct dependency unless you are writing tooling that must agree on IDs. Do not change the algorithm: every catalog ID would move.
import { messageId } from '@duckalization/id';
messageId('Sign in');
messageId('Book', 'verb');
messageId({ one: '{count} item', other: '{count} items' });messageId(message, context?)canonicalMessage(message)PLURAL_FORMS- Types:
Message,PluralMessage,PluralForm
Complete usage guide: duckalization README.
Agents: llms.txt.
