@mvrx/wbxml
v0.1.0
Published
Zero-dependency WBXML parser and encoder for Exchange ActiveSync 14.1
Maintainers
Readme
@mvrx/wbxml
Zero-dependency WBXML parser and encoder for Exchange ActiveSync 14.1.
Works on Cloudflare Workers, Node.js 18+, Deno, Bun, and browsers — no native modules, no Node.js APIs.
Install
npm install @mvrx/wbxmlUsage
import { decode, encode } from "@mvrx/wbxml";
// Parse a WBXML binary buffer from an EAS response
const tree = decode(wbxmlBuffer);
console.log(tree.tag); // "Sync"
console.log(tree.children); // [{ tag: "Collections", ... }]
// Build and encode an EAS request
const buffer = encode({
tag: "Sync",
namespace: "AirSync",
children: [
{
tag: "Collections",
children: [
{
tag: "Collection",
children: [
{ tag: "SyncKey", text: "0" },
{ tag: "CollectionId", text: "inbox" },
],
},
],
},
],
});Runtime compatibility
| Runtime | Supported | |---|---| | Cloudflare Workers | ✓ | | Node.js 18+ | ✓ | | Deno | ✓ | | Bun | ✓ | | Browser | ✓ |
License
MIT — licensed separately from @mvrx/mail (AGPL-3.0-only). As a standalone protocol
parser with no product logic, @mvrx/wbxml is permissively licensed so it can be freely
embedded in any project, proprietary or otherwise. See LICENSE.
