quaeearum

raw JSON →
1.1.1 verified Fri May 01 auth: no javascript

quaeearum is a protobuf-to-TypeScript transpiler at version 1.1.1. It converts Protocol Buffer definitions (.proto) into TypeScript interfaces and types, enabling type-safe usage of protobuf messages in TypeScript projects. The package is in an early stage with no recent updates; release cadence is unknown. As a transpiler, it differentiates by focusing solely on TypeScript interface generation rather than full runtime serialization, potentially offering a lighter alternative to protobufjs or ts-proto.

deprecated Function 'parseProtobuf' is deprecated and will be removed in v2.0. Use 'transpile' instead.
fix Replace parseProtobuf with transpile.
npm install quaeearum
yarn add quaeearum
pnpm add quaeearum

Demonstrates how to use the transpile function to convert a protobuf message definition into TypeScript types.

import { transpile } from 'quaeearum';

const protoContent = `
syntax = "proto3";
message Person {
  string name = 1;
  int32 age = 2;
}
`;

const result = transpile(protoContent);
console.log(result);
// Output: TypeScript interface definitions