{"versions":{"1.0.0-beta.2":{"name":"@univerjs-pro/exchange-node","version":"1.0.0-beta.2","author":"DreamNum Co., Ltd. <developer@univer.ai>","_id":"@univerjs-pro/exchange-node@1.0.0-beta.2","maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dist":{"shasum":"41f258888333bfb1f52df405e4042e3b3d04f3d0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.0.0-beta.2.tgz","fileCount":5,"integrity":"sha512-flC1zvh665pgSO2Zcgahurzh4qCJBP0kw2afl0desFQI7QiAlCKDkzxnQkuZeWrzHyo57l+S2MCuffzT21KAhg==","signatures":[{"sig":"MEQCIEx1UTgf39jBnvHBPFPWG+aEq5gXcI6W+BkdXe7MFpcZAiBc0v3B81zo44aCIAz8iM74IDqXOfv0QXvXkOa4V8V3Uw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":51641,"size":8695},"main":"./lib/cjs/index.cjs","type":"module","types":"./lib/types/index.d.ts","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"dependencies":{"@univerjs/core":"1.0.0-beta.2","@univerjs/protocol":"1.0.0-beta.2","@univerjs-pro/slides":"1.0.0-beta.2","@univerjs-pro/collaboration":"1.0.0-beta.2","@univerjs-pro/exchange-node-binding":"0.1.0"},"publishConfig":{"main":"./lib/cjs/index.cjs","types":"./lib/types/index.d.ts","access":"public","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/exchange-node_1.0.0-beta.2_1787646121909_0.08694904446249763","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-08-25T08:22:02.055Z","publish_time":1787646122055,"_source_registry_name":"default","contributors":[]},"1.0.0-rc.0":{"_id":"@univerjs-pro/exchange-node@1.0.0-rc.0","dist":{"shasum":"c6351368720dfd643e577aedd223826354f9b311","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.0.0-rc.0.tgz","fileCount":5,"integrity":"sha512-yW81GE8U1LLX+fZDj8e3jCCGnKhwJ9e3YunEh0G8oUDhUTocmxLzJWV26HfgIr09zE2zY66VNEU6gVxvJYghWg==","signatures":[{"sig":"MEYCIQD+OaTePuyUtsz4QYsttkCEXTO6HPxCWII4MFPjwPyc9QIhAJcG3zS0C7vJBo+8P1TBcjjpRVKGZKoItbyRak9e9Y+T","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDIQuV+s5jJm3X2J8KEn76/ijIcam5qOEJrSBOFF5MzWAIhAOW1cpHu5cqFRAm9CurmambSidW0cf0tU329aycpzqV8"}],"unpackedSize":51631,"size":8697},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.0.0-rc.0","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.0.0-rc.0","@univerjs/protocol":"1.0.0-rc.0","@univerjs-pro/slides":"1.0.0-rc.0","@univerjs-pro/collaboration":"1.0.0-rc.0","@univerjs-pro/exchange-node-binding":"0.1.2"},"publishConfig":{"main":"./lib/cjs/index.cjs","types":"./lib/types/index.d.ts","access":"public","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.0.0-rc.0_1789111247025_0.889511943700422"},"_cnpmcore_publish_time":"2026-09-11T07:20:47.105Z","publish_time":1789111247105,"_source_registry_name":"default","contributors":[]},"1.0.0":{"_id":"@univerjs-pro/exchange-node@1.0.0","dist":{"shasum":"c6d3e1184022b3ba8b5291061cbf01fb7262b876","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.0.0.tgz","fileCount":5,"integrity":"sha512-XStNEa+MiXizPc1QJ+ZwzNT+naAgb6sdUe5dFVBHmtlusIGoa7i+wqSNbJ/aEWRzgDILSxQcGGzRqUSHFESebQ==","signatures":[{"sig":"MEUCIBtC0kXo4WDT34scHh2U43FRwgnhYvC/umvPGmobhD0XAiEAsvX073xbTBvtfRlFXvDyNVl2AhmFR4Vms0flFCY8Mzs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAGdyv4mrBEQOwIWeooGO7mu+HS5ojW7m9yY0Dr/G+gfAiEAplEd4gF+m3R3dEciEWIRsD5gLooD4FFbKy+MYek/Hpc="}],"unpackedSize":51128,"size":9126},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.0.0","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.0.0","@univerjs/protocol":"1.0.0","@univerjs-pro/slides":"1.0.0","@univerjs-pro/collaboration":"1.0.0","@univerjs-pro/exchange-node-binding":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.0.0_1790214611107_0.21048907942849637"},"_cnpmcore_publish_time":"2026-09-24T01:50:11.195Z","publish_time":1790214611195,"_source_registry_name":"default","contributors":[]},"1.0.1":{"_id":"@univerjs-pro/exchange-node@1.0.1","dist":{"shasum":"5700d481ca1ff94f004673460b15b046a1c7c2a4","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.0.1.tgz","fileCount":5,"integrity":"sha512-bzdAmyzI1I9ToeB3bOKibUoLBibKUyIl8NrnOsMf7lhtZsSc3oinYs/bl3zwcATWNV0uSfDo0vzXyD9l/GXZbw==","signatures":[{"sig":"MEQCIF1bOgja3uFka6zz8gny5Vvs1Cvdus6WdCVoD29ibmRMAiAvGOhB/kd+5FTjCtZAg5SMnhxJfdQnVpQUShSQuxZ4Bw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCXDQ+uRTXpLZk+12syucg7ErXAEu5gVQHEAsDsTv51wwIgXNd4cMOdvYnPA2QBNIAZFB83t6xVUbd9S+382wZoVhw="}],"unpackedSize":51128,"size":9126},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.0.1","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.0.1","@univerjs/protocol":"1.0.1","@univerjs-pro/slides":"1.0.1","@univerjs-pro/collaboration":"1.0.1","@univerjs-pro/exchange-node-binding":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.0.1_1790256500359_0.9006694552951517"},"_cnpmcore_publish_time":"2026-09-24T13:28:20.449Z","publish_time":1790256500449,"_source_registry_name":"default","contributors":[]},"1.0.2":{"_id":"@univerjs-pro/exchange-node@1.0.2","dist":{"shasum":"f3b18a56b531bdd54441df2ffd8c4a3f32dd7b68","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.0.2.tgz","fileCount":5,"integrity":"sha512-ULBW21D4ns658bnmqjiwrLWdDBoFmpR29aiwoa3Ck6L0YtTX56lhfLBh5FfRvEbHZeWb7c+AXRZ7lYsAXsTsBA==","signatures":[{"sig":"MEYCIQCzFIrvfTuSk0awUS2w4fvxteYnwtl9ncs1UQhZgqT5lQIhAOQjOpjYC5+h0OtB/9pVOoT0krxQ+5D3WuW7P1zHwxVa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCkk8NMADHqNtSzaIJm8gxZwQTBo2I5/1gDwLUS6zSvUQIhAJWlaYgs4uSlGWKhnHw3ZPtTCeDRbMg5C16nWKOklOBH"}],"unpackedSize":51128,"size":9129},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.0.2","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.0.2","@univerjs/protocol":"1.0.2","@univerjs-pro/slides":"1.0.2","@univerjs-pro/collaboration":"1.0.2","@univerjs-pro/exchange-node-binding":"1.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.0.2_1790263817845_0.977104430606587"},"_cnpmcore_publish_time":"2026-09-24T15:30:17.938Z","publish_time":1790263817938,"_source_registry_name":"default","contributors":[]},"1.0.3":{"_id":"@univerjs-pro/exchange-node@1.0.3","dist":{"shasum":"9e2878f98f5585c32e3bb30a7aa6ced188740539","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.0.3.tgz","fileCount":5,"integrity":"sha512-382mwA1vhayuZ4eVnQZp3dI+N9HuEqSHduXifl7iuy3fJEZjwJ7NkxczVb7nps/lLlVQHCPt5kthym6ZgYqEdw==","signatures":[{"sig":"MEQCIEAhvymcmxYcNww8EFOxhRlCwA+7T+yQ3ZdKZBHTl10CAiBv4r3SIZApiPLH+rnWv/GASr5xF3R2l43qQ48bwBR1ew==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGt5212ILh6BX1cNnjJHCT4txiqhqa9Me0oY4R6yW4J2AiEAxgj+vvJKDA+9GlGwOa93YtOtuHiGYpS0vXh0jE6+DSE="}],"unpackedSize":51128,"size":9129},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.0.3","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.0.3","@univerjs/protocol":"1.0.3","@univerjs-pro/slides":"1.0.3","@univerjs-pro/collaboration":"1.0.3","@univerjs-pro/exchange-node-binding":"1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.0.3_1790688312500_0.943808889951544"},"_cnpmcore_publish_time":"2026-09-29T13:25:12.569Z","publish_time":1790688312569,"_source_registry_name":"default","contributors":[]},"1.0.4":{"_id":"@univerjs-pro/exchange-node@1.0.4","dist":{"shasum":"26962782b9e6087c48c1f3e872533915fa37dbad","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.0.4.tgz","fileCount":5,"integrity":"sha512-//lyLAFUdSVJxYAKJtkydPOdHo6OU18WIOvn8cDgOE4IxShh2KRXeNdI23CR//rWh0lD3vQoHI0GQt/xSOLd3g==","signatures":[{"sig":"MEUCIAIJFGJ6xAxe8rqAoX+rMEW61rbJ4u1dyk1aRxaG1cWuAiEAtI8AfowtCJeqH2GQzqR65Z0zuDASKw57ZigOUiHLvGk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEwLQF5ZLRfQ16LkIfWwaqJ7Fl1L+3XMvtt9paUnFMncAiAKZra3dS6AVAa0WcBabLtCgwPebHB6g5HA7xUfYtHmxQ=="}],"unpackedSize":51128,"size":9129},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.0.4","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.0.4","@univerjs/protocol":"1.0.4","@univerjs-pro/slides":"1.0.4","@univerjs-pro/collaboration":"1.0.4","@univerjs-pro/exchange-node-binding":"1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.0.4_1791766316032_0.6941703104314656"},"_cnpmcore_publish_time":"2026-10-12T00:51:56.120Z","publish_time":1791766316120,"_source_registry_name":"default","contributors":[]},"1.1.0":{"_id":"@univerjs-pro/exchange-node@1.1.0","dist":{"shasum":"c7275a47bc8b93c27bb90dc0cb404cc9dccec523","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.1.0.tgz","fileCount":5,"integrity":"sha512-XDd3KaeFkWF/YEkeSziAvpxgun5FtKVUdETt4ohy9G+ojd8zi1ISQDBjmDCGc90ycp00c0ix8kvmI+2lq6s6cw==","signatures":[{"sig":"MEUCIGnOzXUckTSn5cFQOBbJOUupeWZF6lM3AJjY/CjeJANNAiEAotvTl72m3mdTTPXX3T8tm3x2WbOS7BXk+BqRUvWS4gM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDDnbQ2IuClyPy1BCdRmD5dTymjpeSlKZCawMVfQ9cG4AIgB9AAkTgYpQagilzCQ6hDmTarFLySVrGGDS3x9nD8Dtc="}],"unpackedSize":51128,"size":9131},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.1.0","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.1.0","@univerjs/protocol":"1.1.0","@univerjs-pro/slides":"1.1.0","@univerjs-pro/collaboration":"1.1.0","@univerjs-pro/exchange-node-binding":"1.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.1.0_1792252752810_0.4272037697485682"},"_cnpmcore_publish_time":"2026-10-17T15:59:12.908Z","publish_time":1792252752908,"_source_registry_name":"default","contributors":[]},"1.2.0":{"_id":"@univerjs-pro/exchange-node@1.2.0","dist":{"shasum":"492f32082e3a7c7acd8f96d4fbd3c087d55ad0cd","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.2.0.tgz","fileCount":5,"integrity":"sha512-Q6OORxmhRQXDHfFSF7ItM1CpuqtOzMoHKM1dtXyBOn76XINLHdFKw+h9r01TojuPjjlZxGSjjBT2jlJPLcecNA==","signatures":[{"sig":"MEQCIDQUpzbYbMVEHk0Y89yBIt6v0r+xSnxN3E/AaHbHq+rmAiAC8tU7yEqH6fzFzlEFwmpmMwgyHYK8oIjUd+9hNsaqJg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCKO0NxPUryG5O2hbr5PXpG6ahKPvbYm5jRxy+BbhkvjAIhAKa1g4y61hPyfoz1Kgu0vV6ngCh8lt0paoBcG33mcebV"}],"unpackedSize":51128,"size":9131},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"}},"version":"1.2.0","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"dependencies":{"@univerjs/core":"1.2.0","@univerjs/protocol":"1.2.0","@univerjs-pro/slides":"1.2.0","@univerjs-pro/collaboration":"1.2.0","@univerjs-pro/exchange-node-binding":"1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.2.0_1792686850040_0.02176146672555368"},"_cnpmcore_publish_time":"2026-10-22T16:34:10.159Z","publish_time":1792686850159,"_source_registry_name":"default","contributors":[]},"1.3.0":{"_id":"@univerjs-pro/exchange-node@1.3.0","dist":{"shasum":"92a59bc2ea19a44569e13c74e37e44ad23f71856","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.3.0.tgz","fileCount":10,"integrity":"sha512-0HWFron3QvjufxcuM6PjoY24S3MNtzO/N3sflWZMhSluEgnpvCgiFSSdZS74sPWKsXuerJR+NQ3QgxnGM1Q4Ew==","signatures":[{"sig":"MEQCICBc+2G2YYn9laNDy856KGUAePNmh9LGlZHWOaABExCXAiBQlCi1atNelg0UaLxkeWpBKDIfSiqhf+6V5S/FmjYH+w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDc79kSvkXDsxCUIdavXFAPMELjqb8uFoOOhT6fHbXF0AIgJTrqrXUYb/v+aHKREFd3lrr0sNSIkKVlWBWaKKWlq7o="}],"unpackedSize":74560,"size":18346},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"},"./pdf":{"types":"./lib/types/pdf.d.ts","import":"./lib/es/pdf.js","default":"./lib/es/pdf.js","require":"./lib/cjs/pdf.cjs"}},"version":"1.3.0","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"sideEffects":["./src/pdf.ts","./lib/es/pdf.js","./lib/cjs/pdf.cjs"],"dependencies":{"@univerjs/core":"1.3.0","@univerjs-pro/pdfs":"1.3.0","@univerjs/protocol":"1.3.0","@univerjs-pro/slides":"1.3.0","@univerjs-pro/collaboration":"1.3.0","@univerjs-pro/exchange-node-binding":"1.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@univerjs-pro/exchange-pdf-node-binding":"1.0.0"},"peerDependenciesMeta":{"@univerjs-pro/exchange-pdf-node-binding":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.3.0_1793303639619_0.7710422166983795"},"_cnpmcore_publish_time":"2026-10-29T19:53:59.709Z","publish_time":1793303639709,"_source_registry_name":"default","contributors":[]},"1.3.1":{"_id":"@univerjs-pro/exchange-node@1.3.1","dist":{"shasum":"f92df999e1d7c259fedcdc2b57bd06d9839f055a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.3.1.tgz","fileCount":10,"integrity":"sha512-haU6+0Ootji1fOq8Vt7fzESCNNFbFojY3y/EXGGyjQYq076GsWgqEeHyRUWMR1dolepYL4dqDeKLB2v/ECPjoA==","signatures":[{"sig":"MEQCIF+DECyblxPehif5+nmPqOIuhS9AOcJz71Op9SEad5OOAiBLD2/b47ecZVLgiV4U591OzIf5zrRm/O4VcLyVXuClCQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGQWLDsBtlQUYI0Dpz8tTWTEsfL3USQrsd4FhVKCWVJ9AiB0TZ3NgbdCuqZijdYyOHPYc04AvQRCIbhsaO0V7L2jLQ=="}],"unpackedSize":72997,"size":17824},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"},"./pdf":{"types":"./lib/types/pdf.d.ts","import":"./lib/es/pdf.js","default":"./lib/es/pdf.js","require":"./lib/cjs/pdf.cjs"}},"version":"1.3.1","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"sideEffects":["./src/pdf.ts","./lib/es/pdf.js","./lib/cjs/pdf.cjs"],"dependencies":{"@univerjs/core":"1.3.1","@univerjs-pro/pdfs":"1.3.1","@univerjs/protocol":"1.3.1","@univerjs-pro/slides":"1.3.1","@univerjs-pro/collaboration":"1.3.1","@univerjs-pro/exchange-node-binding":"~1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@univerjs-pro/exchange-pdf-node-binding":"~1.0.1"},"peerDependenciesMeta":{"@univerjs-pro/exchange-pdf-node-binding":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.3.1_1793392485957_0.9230471889113285"},"_cnpmcore_publish_time":"2026-10-30T20:34:46.059Z","publish_time":1793392486059,"_source_registry_name":"default","contributors":[]},"1.4.0":{"_id":"@univerjs-pro/exchange-node@1.4.0","dist":{"shasum":"b8d2fa6c86ef5c7af30b37dfa70237276086b633","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.4.0.tgz","fileCount":13,"integrity":"sha512-3Y5loThjyhcpSgenqOXLxMd/J3nNEuj3mYi/nWCWDO4eEWV4FqTuKPeIfk+m5uRFDLIPUxklTJTVmaMm0xqdQw==","signatures":[{"sig":"MEYCIQDcSaiJL4x9P3XnipbOeLaVCs3ATumdksXXciuw3jv1TAIhALULsBGm/iGsj+J7Yt0HObrDNP/hIhrXGmtC34G1LeND","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCfQtTRxz7VL2fwHLeB2jv29/J5WQNWPJyh7K34sxOZNwIhAN93SqAryRDcVTAGxlx0ec8WuRa37wUiG6QGBer97mpH"}],"unpackedSize":136959,"size":35833},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"},"./pdf":{"types":"./lib/types/pdf.d.ts","import":"./lib/es/pdf.js","default":"./lib/es/pdf.js","require":"./lib/cjs/pdf.cjs"},"./mermaid":{"types":"./lib/types/mermaid.d.ts","import":"./lib/es/mermaid.js","default":"./lib/es/mermaid.js","require":"./lib/cjs/mermaid.cjs"}},"version":"1.4.0","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"sideEffects":["./src/pdf.ts","./lib/es/pdf.js","./lib/cjs/pdf.cjs","./src/mermaid.ts","./lib/es/mermaid.js","./lib/cjs/mermaid.cjs"],"dependencies":{"@univerjs/core":"1.4.0","@univerjs-pro/pdfs":"1.4.0","@univerjs/protocol":"1.4.0","@univerjs-pro/boards":"1.4.0","@univerjs-pro/slides":"1.4.0","@univerjs-pro/collaboration":"1.4.0","@univerjs-pro/exchange-node-binding":"~1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@univerjs-pro/exchange-pdf-node-binding":"~1.1.0"},"peerDependenciesMeta":{"@univerjs-pro/exchange-pdf-node-binding":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.4.0_1794069162382_0.4992000018472321"},"_cnpmcore_publish_time":"2026-11-07T16:32:42.471Z","publish_time":1794069162471,"_source_registry_name":"default","contributors":[]},"1.5.2":{"_id":"@univerjs-pro/exchange-node@1.5.2","dist":{"shasum":"3d7182e19e6cda857bf5005c6ada669d24f4c529","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.5.2.tgz","fileCount":13,"integrity":"sha512-EJRVU+4VNENC95rg/DwH8hIF/+nI5Lecs1Bx031pZoLtXIC4T86+fpUxZVnQY6nbntz2pWMl/8yKul+a/of7uw==","signatures":[{"sig":"MEUCIQDz/rykB9p0+pzAGcScRwatkRpWH1Vd7Bd4FnUiyvl6wAIgFnfgyN1se6kyCMIDthOG/1xgEUYYm0mFPNAvW39NaFI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICB3jOKjvZ+X8CgX56l0NTDNybsbLfqw8dJn0ZfEwtptAiEA05EwxkCcyK+swuR1x0cZythWl1qJrzhzLjtnMxyPrWs="}],"unpackedSize":146031,"size":39172},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"},"./pdf":{"types":"./lib/types/pdf.d.ts","import":"./lib/es/pdf.js","default":"./lib/es/pdf.js","require":"./lib/cjs/pdf.cjs"},"./mermaid":{"types":"./lib/types/mermaid.d.ts","import":"./lib/es/mermaid.js","default":"./lib/es/mermaid.js","require":"./lib/cjs/mermaid.cjs"}},"version":"1.5.2","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"sideEffects":["./src/pdf.ts","./lib/es/pdf.js","./lib/cjs/pdf.cjs","./src/mermaid.ts","./lib/es/mermaid.js","./lib/cjs/mermaid.cjs"],"dependencies":{"@univerjs/core":"1.5.2","@univerjs-pro/pdfs":"1.5.2","@univerjs/protocol":"1.5.2","@univerjs-pro/boards":"1.5.2","@univerjs-pro/slides":"1.5.2","@univerjs-pro/collaboration":"1.5.2","@univerjs-pro/exchange-node-binding":"~1.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@univerjs-pro/exchange-pdf-node-binding":"~1.2.0"},"peerDependenciesMeta":{"@univerjs-pro/exchange-pdf-node-binding":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.5.2_1794831623896_0.5942946487893065"},"_cnpmcore_publish_time":"2026-11-16T12:20:24.007Z","publish_time":1794831624007,"_source_registry_name":"default","contributors":[]},"1.6.0":{"_id":"@univerjs-pro/exchange-node@1.6.0","dist":{"shasum":"39e7e768480f3ee44cbc47e804fd7254d4ff6579","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.6.0.tgz","fileCount":13,"integrity":"sha512-Mlwg336RcXSIb1Ni98+r2SnvbhGcoyD/uZtXCcTzqeJOfdSEvMrRisj6PNFXTU2WOGupDgIflYKts64HthtyiA==","signatures":[{"sig":"MEYCIQD+BSaEOd4X+epkWCH/4+JHPwRpnvzr2dK6S+bK+JjQogIhAId55Q8HEiJ6Rx3ZOavVBweTdvHrEpTzvHoPyZ60NsE9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH/uUVAQAX5GHSsbw1MI/GV23N2NVAGOrlbk25+XXAyDAiEArCC6h2VSSy58YJCJBqe3o4jxKS0LAQO1He8vDqeFxSM="}],"unpackedSize":146031,"size":39170},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"},"./pdf":{"types":"./lib/types/pdf.d.ts","import":"./lib/es/pdf.js","default":"./lib/es/pdf.js","require":"./lib/cjs/pdf.cjs"},"./mermaid":{"types":"./lib/types/mermaid.d.ts","import":"./lib/es/mermaid.js","default":"./lib/es/mermaid.js","require":"./lib/cjs/mermaid.cjs"}},"version":"1.6.0","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"sideEffects":["./src/pdf.ts","./lib/es/pdf.js","./lib/cjs/pdf.cjs","./src/mermaid.ts","./lib/es/mermaid.js","./lib/cjs/mermaid.cjs"],"dependencies":{"@univerjs/core":"1.6.0","@univerjs-pro/pdfs":"1.6.0","@univerjs/protocol":"1.6.0","@univerjs-pro/boards":"1.6.0","@univerjs-pro/slides":"1.6.0","@univerjs-pro/collaboration":"1.6.0","@univerjs-pro/exchange-node-binding":"~1.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@univerjs-pro/exchange-pdf-node-binding":"~1.2.0"},"peerDependenciesMeta":{"@univerjs-pro/exchange-pdf-node-binding":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.6.0_1795273288431_0.8658391841149355"},"_cnpmcore_publish_time":"2026-11-21T15:01:28.550Z","publish_time":1795273288550,"_source_registry_name":"default","contributors":[]},"1.6.1":{"_id":"@univerjs-pro/exchange-node@1.6.1","dist":{"shasum":"af8a21c12aa21707529d5f63428f8d1bf06547ed","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.6.1.tgz","fileCount":13,"integrity":"sha512-gCAGPYvgFKn5mjt6Be/EBDdC4neo/6MKZ0/6UzSsdDHjM/uenoRnFd7805TyOqkz9f2FjKjeISWxI3IQChgr/w==","signatures":[{"sig":"MEUCIQCUeR9NtbyUfmK3IkKqi4qRHvrgrr8BlylDLBpDmuQgXAIgGJ/BOiTfoP1Z4FY/DIljsrtNDFQleQsOc4wRrwkKUJg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBvbUGgfTy8KVBauwyoOY6d5bCQi+yT2kO1kRzAkfxq+AiAIzTeji6FX/sdJmOFc0h9pz/DEjwXlfjSTR0tjdnr8Bw=="}],"unpackedSize":146031,"size":39174},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"},"./pdf":{"types":"./lib/types/pdf.d.ts","import":"./lib/es/pdf.js","default":"./lib/es/pdf.js","require":"./lib/cjs/pdf.cjs"},"./mermaid":{"types":"./lib/types/mermaid.d.ts","import":"./lib/es/mermaid.js","default":"./lib/es/mermaid.js","require":"./lib/cjs/mermaid.cjs"}},"version":"1.6.1","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"sideEffects":["./src/pdf.ts","./lib/es/pdf.js","./lib/cjs/pdf.cjs","./src/mermaid.ts","./lib/es/mermaid.js","./lib/cjs/mermaid.cjs"],"dependencies":{"@univerjs/core":"1.6.1","@univerjs-pro/pdfs":"1.6.1","@univerjs/protocol":"1.6.1","@univerjs-pro/boards":"1.6.1","@univerjs-pro/slides":"1.6.1","@univerjs-pro/collaboration":"1.6.1","@univerjs-pro/exchange-node-binding":"~1.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@univerjs-pro/exchange-pdf-node-binding":"~1.2.0"},"peerDependenciesMeta":{"@univerjs-pro/exchange-pdf-node-binding":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.6.1_1795413838381_0.33111862414091375"},"_cnpmcore_publish_time":"2026-11-23T06:03:58.484Z","publish_time":1795413838484,"_source_registry_name":"default","contributors":[]},"1.6.2":{"_id":"@univerjs-pro/exchange-node@1.6.2","dist":{"shasum":"f0e25c073b9e917b0a26e5a28205d7b832fab284","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@univerjs-pro/exchange-node/-/exchange-node-1.6.2.tgz","fileCount":13,"integrity":"sha512-QcnGcxtIZSvOa+6d0sy8nQDH7bYX2oozLCcMLcCeeBplLhs8G1ExzD1rN3DZnOPHV7boXN5XvbuZFECMq4Whrg==","signatures":[{"sig":"MEQCIAffHMDlDMMVaeq5j97oGF+FQHGDJpn9yC3/zUecJZ6RAiBR1mSVOdGh1IFGCVwN1myu3Xt/w8Isej1Cr9qjcfPszw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIERBnEfbvM/reKXCur381YMywBwXFYk32O9HdC+4v6nwAiBQr2DWu/W+d92yES8SVzJiEKRv7O3ymqV66C5k61FjRA=="}],"unpackedSize":146031,"size":39175},"main":"./lib/cjs/index.cjs","name":"@univerjs-pro/exchange-node","type":"module","types":"./lib/types/index.d.ts","author":"DreamNum Co., Ltd. <developer@univer.ai>","module":"./lib/es/index.js","exports":{".":{"types":"./lib/types/index.d.ts","import":"./lib/es/index.js","default":"./lib/es/index.js","require":"./lib/cjs/index.cjs"},"./pdf":{"types":"./lib/types/pdf.d.ts","import":"./lib/es/pdf.js","default":"./lib/es/pdf.js","require":"./lib/cjs/pdf.cjs"},"./mermaid":{"types":"./lib/types/mermaid.d.ts","import":"./lib/es/mermaid.js","default":"./lib/es/mermaid.js","require":"./lib/cjs/mermaid.cjs"}},"version":"1.6.2","_npmUser":{"name":"anonymous","email":"hexf00@gmail.com"},"description":"Node.js SDK for converting between Office formats, Univer unit data, and snapshots","directories":{},"maintainers":[{"name":"anonymous","email":"sonne@asaki.me"},{"name":"anonymous","email":"hexf00@gmail.com"},{"name":"anonymous","email":"msoffice2@126.com"}],"sideEffects":["./src/pdf.ts","./lib/es/pdf.js","./lib/cjs/pdf.cjs","./src/mermaid.ts","./lib/es/mermaid.js","./lib/cjs/mermaid.cjs"],"dependencies":{"@univerjs/core":"1.6.2","@univerjs-pro/pdfs":"1.6.2","@univerjs/protocol":"1.6.2","@univerjs-pro/boards":"1.6.2","@univerjs-pro/slides":"1.6.2","@univerjs-pro/collaboration":"1.6.2","@univerjs-pro/exchange-node-binding":"~1.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@univerjs-pro/exchange-pdf-node-binding":"~1.2.0"},"peerDependenciesMeta":{"@univerjs-pro/exchange-pdf-node-binding":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/exchange-node_1.6.2_1795608243715_0.561915431901284"},"_cnpmcore_publish_time":"2026-11-25T12:04:03.817Z","publish_time":1795608243817,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"beta":"1.0.0-beta.2","latest":"1.6.2","rc":"1.0.0-rc.0"},"name":"@univerjs-pro/exchange-node","time":{"created":"2026-09-11T07:20:58.966Z","modified":"2026-11-25T12:04:12.281Z","1.0.0-beta.2":"2026-08-25T08:22:02.055Z","1.0.0-rc.0":"2026-09-11T07:20:47.105Z","1.0.0":"2026-09-24T01:50:11.195Z","1.0.1":"2026-09-24T13:28:20.449Z","1.0.2":"2026-09-24T15:30:17.938Z","1.0.3":"2026-09-29T13:25:12.569Z","1.0.4":"2026-10-12T00:51:56.120Z","1.1.0":"2026-10-17T15:59:12.908Z","1.2.0":"2026-10-22T16:34:10.159Z","1.3.0":"2026-10-29T19:53:59.709Z","1.3.1":"2026-10-30T20:34:46.059Z","1.4.0":"2026-11-07T16:32:42.471Z","1.5.2":"2026-11-16T12:20:24.007Z","1.6.0":"2026-11-21T15:01:28.550Z","1.6.1":"2026-11-23T06:03:58.484Z","1.6.2":"2026-11-25T12:04:03.817Z"},"readme":"# @univerjs-pro/exchange-node\n\nNode.js SDK for converting between Office/PDF formats, Mermaid diagrams, Univer unit data, and complete Univer snapshots.\n\nThe package exposes two API families:\n\n- `importFile` / `importBuffer` and `exportToFile` / `exportToBuffer` convert Univer in-memory unit data.\n- `importFileToSnapshot` / `importBufferToSnapshot` and `exportSnapshotToFile` / `exportSnapshotToBuffer` convert complete snapshot aggregates without creating a Univer runtime.\n\n## Install\n\nKeep this package and its Univer SDK dependencies on the same SDK version for non-dev releases:\n\n```sh\npnpm add @univerjs-pro/exchange-node\n```\n\nNative Binding dependencies allow same-minor patches from the version paired with the SDK; the application lock controls the installed patch.\n\nOffice native builds containing the integer-period PV correction can change trailing digits in recalculated\n`PV` results and dependent balances: `PV(0.05/12,4,-3000)` changes from `11876.034121502425` to\n`11876.03412150258`. This applies to nonzero rates and integer period counts with absolute value at most\n`2147483647`; other PV inputs retain their existing calculation paths. Update the Office binding and request\nformula recalculation to apply it; cached values and older native builds are not rewritten by a Wrapper update.\nAPI, protocol and snapshot formats require no migration. Release identities remain to be selected;\nnative Formula and Pro comparison tests pass, but a new published Office package and Excel round trip have\nnot been validated for this correction.\n\n## Import\n\n```ts\nimport { UniverInstanceType } from '@univerjs/core';\nimport { ExchangeFormat, importBuffer } from '@univerjs-pro/exchange-node';\n\nconst workbook = await importBuffer(xlsxBuffer, {\n    type: UniverInstanceType.UNIVER_SHEET,\n    format: ExchangeFormat.XLSX,\n    fileName: 'example.xlsx',\n});\n```\n\n`importBuffer` requires `fileName`. File imports use the path basename by default and allow `fileName` to override format inference. An explicit `format` always takes precedence.\n\n### XLSX legacy note sizes\n\nXLSX imports convert legacy note dimensions from VML to pixels, then store `max(convertedWidth, 160)` and `max(convertedHeight, 72)` in the note resource. Each dimension is clamped independently to accommodate Univer's note styling. Missing, zero or unreadable dimensions, including an absent or unmatched VML shape, use the same minimum. Previously, small dimensions and zero-size fallbacks were imported directly.\n\nThis changes imported note geometry: larger dimensions are retained, while smaller boxes grow. Exporting the imported workbook writes those resulting sizes, so a round trip can enlarge notes in Excel too. The resource structure and API signatures are unchanged; existing snapshots are not resized automatically. Re-import the original XLSX to apply the new minimum, and update snapshot size assertions that expect smaller values. This fixed import minimum does not read the UI's `defaultNoteSize` configuration or prevent users from resizing notes afterward. Threaded comments are outside this change.\n\nThe behavior requires Office native artifacts containing this import correction; updating only the JavaScript wrapper does not change an older native importer. Source-level XLSX tests cover conversion, independent size limits, missing shapes and existing note metadata. Published package combinations and the screenshot's original workbook have not been verified.\n\n## Export\n\n```ts\nimport { UniverInstanceType } from '@univerjs/core';\nimport {\n    ExchangeFormat,\n    FormulaCalculationMode,\n    exportToBuffer,\n} from '@univerjs-pro/exchange-node';\n\nconst xlsxBuffer = await exportToBuffer(workbook, {\n    type: UniverInstanceType.UNIVER_SHEET,\n    format: ExchangeFormat.XLSX,\n    formulaCalculation: FormulaCalculationMode.WHEN_EMPTY,\n});\n```\n\nSheet export defaults to `FormulaCalculationMode.WHEN_EMPTY`: missing cached formula values are calculated, while existing cached values are preserved. Pass `FormulaCalculationMode.NO` to disable calculation.\n\nEither mode uses the external-link values saved in the workbook snapshot. A saved OOXML cache is used even when its `freshness` marker is `stale` (the value both import and export always write), and a `<sheetData refreshError=\"1\">` marker does not invalidate it: both are resource metadata, matching Excel opening the file without refreshing its links. Import and export calculations therefore agree for the same workbook; the in-session Rust formula engine keeps asking the host for live external data instead.\n\n### XLSX implicit intersection formulas\n\nXLSX export uses the existing `ft` (formula type), `si` (shared group), `ref` (range)\nand `fd` (fixed/dynamic array) cell metadata. Normal (`ft: 0`) and shared formulas\n(`ft: 1`, or a shared `si` group) restore intersections already implied by legacy\ncalculation. Explicit intersections in array-consuming arguments remain explicit:\n`SUM(@A1:A5)` becomes `SUM(_xlfn.SINGLE(A1:A5))`, preserving its scalar result.\nA retained outer intersection also preserves inner intersections in its array\noperand: `@(A1:A5+@B1:B5)` keeps both `SINGLE` calls.\nArray formulas (`ft: 2`) and formulas without type/shared metadata also store explicit\nintersection as `_xlfn.SINGLE(...)`. When type/shared/range metadata is absent, actual\nruntime `@`/`#` operators also derive a single-cell array anchor using the existing\n`ref` mechanism. This preserves Formula2 evaluation inside nested expressions;\ndeclared normal/shared metadata remains authoritative. Spill references such as `A1#` use Excel's\n`_xlfn.ANCHORARRAY(A1)` file spelling. Strings, sheet names and Table references keep\ntheir literal `@` characters, including escaped Table headers.\n\nPreviously, export could write runtime unary `@` directly into worksheet `<f>` text.\nThe corrected Office native binding normalizes the file representation without\nchanging the supplied snapshot or recalculating cached values. When a LET/LAMBDA\nbinding shares a built-in function name, import retains the built-in's `_xlfn.`\nqualification so a later export cannot turn it into a local function call.\n\nOlder snapshots without formula-type/shared metadata use `SINGLE` to retain explicit\nintersection; reimport the original XLSX when its original formula kind and array\nrange are required. Reimporting an untyped operator expression can expose the\ninferred array type and range. Consumers that compare formula strings or snapshots\nmust allow these equivalent representations. The JS API and snapshot schema are\nunchanged; updating only the wrapper cannot fix an older native binding. A new native\nartifact is required; release identities remain to be selected.\n\n### Read editable PivotTables from imported XLSX snapshots\n\nEditable PivotTables are stored in the snapshot's PivotTable resource. Load the snapshot in a compatible Univer frontend to read the rendered results. The worksheet cells retain ordinary data, and import-time formula calculation can still use the report values. Re-import the original XLSX to remove static copies left by earlier imports. Preserve the raw PivotTable resource and use a matching native binding when exporting these snapshots. The default XLSX export writes static report values for spreadsheet readers that do not refresh PivotTables.\n\nUnchanged imported reports replay their saved values and merged headers while retaining current worksheet cell styles. Reports with changed PivotTable configuration and deleted reports do not replay their old output or merges. The raw PivotTable resource v2 stores saved cells in `worksheetOutputCells` and saved merges in `worksheetOutputMerges`; preserve both through frontend saves and export with a native binding that reads both fields. Older exporters ignore the merge archive and cannot preserve this round trip. Snapshots that already lost merge information must be re-imported from the original XLSX. Rebuilding the Office binding or CLI is required; updating only the JavaScript wrapper does not apply these fixes. Release artifacts and desktop Excel refresh still require validation.\n\n### Defer eligible XLSX PivotTable calculations to Excel\n\nPass `deferPivotCalculation: true` to a Sheet XLSX export to leave eligible PivotTable results for Excel to calculate. The option works with `exportToBuffer`, `exportToFile`, `exportSnapshotToBuffer`, and `exportSnapshotToFile`. Omission or `false` keeps the usual export behavior. Formula calculation is controlled separately.\n\nThe eligible profile is a single new PivotTable with one unfiltered, unsorted text row field, one numeric SUM measure, and grand totals. It uses a populated two-column source range on a different sheet with distinct worksheet headers that match the PivotTable source fields. Excel receives the PivotTable definition, source cache, a two-row starting range, and the refresh-on-open setting. The worksheet result cells are initially empty. Open the file in desktop Excel and refresh the PivotTable if it has not refreshed on open.\n\nExport rejects an eligible PivotTable if its maximum refresh range contains worksheet data. Workbooks with formulas, named ranges, charts, slicers, existing raw PivotTables, or grouped fields continue through the usual export path. Use the default for files that must expose static results to readers without Excel refresh support.\n\nThis option requires an Office native binding that supports `deferPivotCalculation`. An older binding rejects the opt-in option. The wrapper omits the native option for both `false` and the default, so existing calls require no changes. The snapshot format is unchanged.\n\n### XLSX worksheet default styles\n\nXLSX has no worksheet-level equivalent of Univer's `sheet.defaultStyle`. The Office native exporter passes the complete default-style object, or the object resolved from its workbook style ID, through the same style conversion used for cells. Column defaults and the necessary composed row/cell styles preserve supported font properties, RGB text and fill colors, borders, number formats, alignment, wrapping, shrink-to-fit, rotation, text direction and left indent. The projection does not filter the input to a list of font fields. Unspecified attributes retain the existing workbook export base; column, row and cell attributes override the default by property, including explicit `0` and `null` clearing values. This also applies to `FWorksheet.setDefaultStyle()` followed by `workbook.save()` and to complete snapshot exports. The workbook's existing Normal style is retained.\n\nPreviously, worksheet defaults such as a changed font or a default fill could be silently lost on export. The corrected native binding preserves the supported effective styles, including blank cells within the worksheet's `columnCount`. Existing cells and explicit column metadata beyond that count are also covered, up to XLSX limits. Columns outside that range and subsequently inserted columns follow Excel's formatting rules; there is no persistent sheet-default inheritance rule in XLSX. Export does not mutate the supplied data. Re-import can represent the defaults using column/cell styles, so `getDefaultStyle()` and snapshot style IDs need not equal their pre-export values. Explicit false bold/italic flags are retained on import, General horizontal alignment can appear as `ht: null` to clear inherited alignment, and font superscript/subscript is read back. These shared conversion corrections also apply to ordinary cell/row/column styles. Applications asserting identical snapshot structure should compare effective styles instead. Default-style colors now use the same validation as cell styles; an invalid CSS color fails export instead of being silently discarded.\n\nExplicit `ff/va/vt/td: null` clears inherited formatting instead of silently re-inheriting it. XLSX stores equivalent concrete values: the core font fallback (Arial), baseline text, bottom alignment and automatic reading order (`td: 0`). `vt: 0` also maps to bottom alignment. These values can replace the original `null` in the re-imported snapshot. The same handling applies to ordinary row/column/cell styles and rich-text cell font-family inheritance; when an imported cell XF omits these properties, the importer supplies clearing values where its row/column parent sets them. This changes previously inherited appearance for those inputs, so applications that relied on it should specify the desired formatting explicitly.\n\nAll default-style fields reach the existing cell-style encoder; this does not make every Univer property losslessly representable in XLSX. Default fill and border theme colors are resolved against the workbook's current palette before encoding, including theme zero; their theme-token identity is not guaranteed after the round trip. Existing conversion limits still apply: for example, there is no independent cell-font overline or per-script East Asian font-family mapping, bottom text-decoration lines are not converted to cell-edge borders, only Excel's supported border directions are written, and padding is mapped to left indent rather than arbitrary four-sided pixel padding. Decoration-specific colors/patterns and wrapping modes follow the existing Excel mapping. Explicit false font flags in table themes and conditional formats are also retained as `0`, since they use the same font reader.\n\nThe generated column records carry the worksheet's column widths as well as their styles, because Excel can treat a style-bearing column with no width as zero-width. Export may add style-only cells where row and column formatting must be combined; highly intersecting row/column styles can increase memory use, processing time and output size. This change does not add a style-count limit check or an automatic fallback: it does not intentionally reject export because of that count. The generated workbook can exceed Excel's supported format limits, and successful loading or automatic repair by Excel is not guaranteed. This fix also does not adjust the existing Table formatting logic. In the tested imported Table case, projecting a worksheet default fill into direct cell formats masked Table theme fills after export; preserving Table theme appearance in that combination remains outside this fix's verified guarantees.\n\nExisting diagnostics and native protocol signatures are unchanged. The fix requires Office native artifacts containing the default-style projection and corresponding explicit-override import corrections; updating only the JavaScript wrapper cannot update an older native implementation. XLSX files remain standard Office files, but an older native importer can still lose clearing or baseline-offset information. Published old/new package combinations must be validated before promotion; the package version string alone does not establish this behavior.\n\nRow and column styles are independent of `sheet.defaultStyle`. The exporter now materializes them on cells whenever `rowData` or `columnData` carries a style, including worksheets without a default style and worksheets whose default only restates the workbook Normal font. A cell that would otherwise show the column style only through `<col style>` therefore receives an explicit cell style, so readers that ignore column formatting (for example, openpyxl) resolve the same font as Univer. Existing cells at row/column intersections receive the composed style as well, because an XLSX row format shadows a column format instead of merging it by property; blank intersections are not filled in, so this fix does not grow the used range, `columnCount`/`rowCount`, or the `<dimension ref>` of a worksheet. Explicit cell styles keep winning per property; only properties the cell leaves unset are inherited. Unaffected cells stay on the workbook default, so output grows only where dimension styles apply, and additional `cellXfs` entries can appear for cells that combine their own style with a row/column style. The same projection applies to the streaming snapshot-bundle export (`prepare_snapshot_bundle_export` plus `export_prepared_snapshot_bundle_to_file`): block cells are composed as they are written. Filling blank intersections remains limited to worksheets whose own `defaultStyle` takes part in the projection, as before this change.\n\n### XLSX Table differential formats\n\nTables with direct differential formats keep their complete table theme when rows or columns are inserted, deleted or moved. Direct formats are evaluated from table metadata by the matching Univer runtime instead of being materialized into direct cell styles. This requires matching Sheets Table, Sheets, Sheets Numfmt and Office native implementations; the JavaScript wrapper alone cannot update an older runtime or binding. Release identities must be selected and the full consumer combination validated before promotion.\n\nThe six table-level formats live in `ITableJson.meta._xlsx.options`: `dataDxfStyle`, `headerRowDxfStyle`, `totalsRowDxfStyle`, `tableBorderDxfStyle`, `headerRowBorderDxfStyle` and `totalsRowBorderDxfStyle`. The three column-level formats live in `ITableColumnJson.meta._xlsx`: `dataDxfStyle`, `headerRowDxfStyle` and `totalsRowDxfStyle`. No resource version field is added; `TableColumn.style` is not used for these formats.\n\nThe frontend only preserves and renders imported dxf; it does not provide a UI, Facade setter or dedicated dxf editing command. Theme and number-format integration is conditional on a matching dxf, and structural preservation changes are conditional on the table having dxf metadata. Tables without dxf keep the previous frontend processing paths.\n\nWhen the metadata container exists, its fields are authoritative. Removing a format key removes that direct format on export; stale top-level fields and the original table XML do not restore it. Top-level legacy formats remain readable when the corresponding metadata container is absent. A table originally without a theme but with direct formats stays unthemed until a theme is explicitly chosen. Theme selection and direct formats remain independent.\n\nPreviously, a structural edit could leave an empty `rust-direct-dxf-*` custom theme. Existing placeholder snapshots use the table's retained source reference to recover the source theme where available; missing source metadata or already-lost definitions cannot be recovered reliably. Re-importing the original XLSX is recommended for historical snapshots containing materialized cell styles. An old frontend can preserve metadata without rendering it, and an old binding can ignore metadata edits or clears; do not mix these implementations without consumer validation.\n\nRaw dxf XML matching the current supported properties is retained. Regenerated Table dxf records also write supported alignment and wrapping properties. Editing a supported property regenerates that dxf using the existing encoder, so unsupported extensions are not guaranteed to survive that edit. OOXML inside-horizontal/inside-vertical border definitions not supported by the frontend border model are retained for unedited export but are not rendered as such. Source tests do not establish Excel rendering fidelity or compatibility of published package combinations. The native call signatures and existing diagnostics behavior are unchanged; in particular, this does not add an XLSX `onDiagnostics` channel.\n\n## Complete snapshots\n\nSnapshot APIs use `ISnapshotWithBlocks`:\n\n```ts\ninterface ISnapshotWithBlocks {\n    snapshot: ISnapshot;\n    sheetBlocks: ISheetBlock[];\n}\n```\n\nSheet and Base snapshots must include every referenced sheet block. Doc, Slide and Board snapshots normally use an empty `sheetBlocks` array.\n\nOffice native builds containing the empty-block compatibility fix accept a `workbook.blockMeta`\nentry with omitted `blocks` (or legacy `Blocks`) as an empty list, matching protobuf JSON's\nomission of empty repeated fields. Older native builds reject that input; updating only this\nJavaScript wrapper does not fix them. Explicit non-array values, invalid block IDs and missing\nreferenced blocks still fail. Existing snapshots need no migration; until the native fix is\navailable, producers can emit `blocks: []` for empty entries. This requires a new Office binding\npatch or rebuilt CLI/FFI; release identities remain to be selected.\n\nSnapshot APIs materialize the complete aggregate in memory. They do not call a Snapshot Server or stream blocks to storage.\n\n## Board export\n\nUse the existing export methods with `UNIVER_BOARD` and `PPTX`:\n\n```ts\nimport { UniverInstanceType } from '@univerjs/core';\nimport { ExchangeFormat, exportToBuffer } from '@univerjs-pro/exchange-node';\n\nconst pptx = await exportToBuffer(board, {\n    type: UniverInstanceType.UNIVER_BOARD,\n    format: ExchangeFormat.PPTX,\n});\n```\n\n`exportToFile`, `exportSnapshotToBuffer` and `exportSnapshotToFile` support the same pair. Data exports accept `IBoardData`; snapshot exports accept the complete Board snapshot, including its binary `board.originalMeta` and resources. The active Board page becomes one editable PPTX slide. If `activePageId` is omitted, the first page in `pageOrder` is used. Missing or empty pages fail explicitly. This uses the CLI's existing Rust Board-to-Slide conversion; export fidelity follows that converter, rather than the browser renderer.\n\nBoard export needs no optional entry. It uses the existing Slide export authorization and shared export quota. The existing `files` and `ole` options can be passed for Board exports. `files.load` resolves required picture references on the exported page; no callback runs when there is no matching resource. Boards currently have no OLE attachment elements, so `ole.loadOnlineUnit` is not called. Accepting these options does not add Board attachment support.\n\n## Optional Mermaid import\n\nEnable the `/mermaid` entry only when importing Mermaid. The existing import methods then return a complete Board or snapshot:\n\n```ts\nimport '@univerjs-pro/exchange-node/mermaid';\nimport { UniverInstanceType } from '@univerjs/core';\nimport { ExchangeFormat, importBuffer } from '@univerjs-pro/exchange-node';\n\nconst board = await importBuffer(Buffer.from('flowchart LR\\nA -->|Approved| B'), {\n    type: UniverInstanceType.UNIVER_BOARD,\n    format: ExchangeFormat.MERMAID,\n    fileName: 'approval.mmd',\n    unitId: 'your-document-id', // Optional: omit to generate an ID, or use your system's document ID.\n});\n```\n\n`importFile`, `importFileToSnapshot` and `importBufferToSnapshot` support the same pair. File imports infer Mermaid from `.mmd` or `.mermaid`; other extensions need an explicit `format`. Buffer imports require `fileName` even with an explicit format. Its basename supplies the Board name, and its extension supplies the format when omitted.\n\nThe SDK compiles with the same Rust defaults as the CLI, materializes a Board page with the public Boards helpers, normalizes connector labels, and retains chart/table resources. It runs in pure Node. Supported diagram syntax and limits follow the [Rust Mermaid diagram inventory](../../crates/univer-exchange-rust/mermaid/src/inventory.rs). Compilation and imports do not consume export quota.\n\n### Advanced compilation\n\nUse the named import when your application needs the intermediate conversion data, for example to insert a diagram into an existing Board:\n\n```ts\nimport { compileMermaid } from '@univerjs-pro/exchange-node/mermaid';\n\nconst draft = await compileMermaid('flowchart LR\\nA --> B');\n// draft: IBoardImportDraft from @univerjs-pro/boards.\n```\n\nThis import also enables the ordinary Mermaid import methods; no additional side-effect import is needed. The return type is the existing `IBoardImportDraft` owned by `@univerjs-pro/boards`, using its element, bounds and diagnostic types. It is neither `IBoardData` nor a snapshot. It uses the same Rust implementation and defaults as the CLI, preserving its JSON output without adding a Node-specific normalization step.\n\n`compileMermaid` only converts data. Your application owns placement, insertion and persistence. This Node API does not provide resource merging or insertion into an existing Board; those capabilities depend on the receiving Web SDK and application. Use the complete import methods above to preserve those resources in a new Board or snapshot. For example, this matters for pie charts and the tables generated from class/ER diagrams.\n\nRust-only fields, including resource payloads and source metadata, may remain on the runtime object for internal conversion. They are not declared or guaranteed by this public API; consumers must use the Boards contract rather than depend on the native wire schema. Compilation does not accept target document/page IDs, positions or an import mode. There is no separate public Rust V2 DTO. Native diagnostic positions, when present, retain the CLI's byte offsets in normalized UTF-8 source.\n\nBoth APIs accept the CLI's resource manifest as **JSON content**, not a path:\n\n```ts\nconst draft = await compileMermaid(source, { resourceManifest: manifestJson });\nconst board = await importBuffer(sourceBuffer, {\n    type: UniverInstanceType.UNIVER_BOARD,\n    fileName: 'diagram.mmd',\n    mermaid: { resourceManifest: manifestJson },\n});\n```\n\n`source` and `resourceManifest` each accept a string or Buffer. Complete imports preserve resolved image sources; the compiler does not fetch remote image URLs. `/pdf` and `/mermaid` may be enabled together, in either order, with ESM or CommonJS.\n\nUse the native binding selected by the SDK's declared dependencies. Board/Mermaid and its resource callbacks require the corresponding native capabilities; an incompatible externally supplied binding produces an explicit upgrade error. The new `MERMAID` enum and Board entries expand the existing type unions; consumers with exhaustive switches should add the new cases.\n\n## Application-owned file storage\n\nImported images and attachments stay inline in the snapshot unless the application takes them. Pass `files` to import and export to decide per file where bytes live. The converter decides which bytes are files, deduplicates identical content and writes references; the application stores and reads them.\n\nImport offers each distinct file once, in order, through `files.store`:\n\n```ts\nconst imported = await importBufferToSnapshot(bytes, {\n    type: UniverInstanceType.UNIVER_SHEET,\n    fileName: 'host.xlsx',\n    files: {\n        store: async (file) => {\n            // file: { name, mimeType, size, bytes }\n            const stored = await storage.save(file.bytes, { name: file.name, contentType: file.mimeType });\n            return { mode: 'reference', source: stored.fileID };\n        },\n    },\n});\n```\n\n`inline` keeps the bytes in the snapshot; `reference` replaces them with a `UUID` reference to `source`. A rejected `store` fails the import with the application's error; every earlier call has completed by then. Thresholds and fallbacks are the application's decisions. Mermaid/Board imports accept the same `files.store` option: embedded pictures are offered once per distinct byte sequence, while inputs with no files call it zero times. Image URLs are preserved without being downloaded. PDF imports use the same file callbacks described below. `files` is not supported for Base imports.\n\nExport asks `files.load` for every reference it needs and verifies stored attachments against the identity recorded in the snapshot:\n\n```ts\nconst bytes = await exportSnapshotToBuffer(host, {\n    type: UniverInstanceType.UNIVER_SHEET,\n    format: ExchangeFormat.XLSX,\n    files: {\n        load: async (ref) => {\n            // ref: { sourceType: 'UUID' | 'URL', source, unitId }\n            await authorize(ref.unitId, ref.source);\n            return { bytes: await storage.read(ref.source) };\n        },\n    },\n});\n```\n\n`load` must return bytes; an application that wants a placeholder returns the placeholder's bytes. `ref.unitId` names the snapshot the reference belongs to: the host, or one of its online child Units. `files` is accepted for Sheet/XLSX, Doc/DOCX, Slide/PPTX and PDF exports. Without `files`, including in online attachment exports, `UUID` and `URL` pictures keep each format's existing handling and a stored attachment is an explicit error.\n\nFiles are OLE attachments with their parts and pictures: floating and cell images in sheets, pictures and the page background in the document body, pictures, picture fills and page backgrounds in slides, layouts and masters, including inside groups. Shapes the importers render themselves and the import placeholder are converter output, not files, and stay inline; so do pictures in document headers and footers, which the exporters write back verbatim. Workbooks imported from XLSX also keep a verbatim copy of each worksheet's drawing parts, pictures included, for byte-exact export; storing such a picture removes the drawing's inline copy but not that retained part, and export writes the retained part.\n\n### Embedded OLE attachments\n\nXLSX, DOCX and PPTX imports retain supported OLE occurrences with their original bytes. Ordinary export writes those originals back, including for occurrences that reference a converted online Unit. To embed the converted Units instead, add `ole` to the export options:\n\n```ts\nole: {\n    attachmentSource: 'online',\n    loadOnlineUnit: (ref) => readConfirmedSnapshot(ref.unitId, ref.type),\n},\n```\n\nThe converter finds converted attachments on the canvas, calls `loadOnlineUnit` once per referenced Unit, exports each child through the same pipeline and embeds the result; children may reference further online Units. Recursion is bounded to 8 levels, 64 Units and 50 MiB; cycles, type mismatches, missing Units and `loadOnlineUnit` failures fail the export, which never falls back to stale originals. The whole task counts as one export against the license quota.\n\nSee [Embedded Office attachments](../../docs/ole-attachments.md) for supported placements, formats and limitations.\n\n## Formats and platforms\n\nOffice conversion supports Sheet and Base import from XLS, XLSX, CSV, and TSV; Doc import from DOC and DOCX; and Slide import from PPT and PPTX. Export supports XLSX, CSV, TSV, DOCX, and PPTX for their corresponding unit types. Board exports PPTX from the root entry; Mermaid imports Board through `/mermaid`. PDF import/export uses the optional `/pdf` entry described below.\n\nOffice native packages are published for Linux x64 GNU, Linux arm64 GNU, Windows x64 MSVC, and macOS x64/arm64.\n\n## License and monthly export quota\n\nSet both `UNIVER_LICENSE` and `UNIVER_LICENSE_KEY` for automatic configuration. The first export or quota query reads them once; no `configureExchange` call is required. Unset, empty or whitespace-only environment values count as absent; when both are absent, Free applies. A single nonblank value is an incomplete pair. Nonblank contents are passed unchanged. This normalization applies only to environment fallbacks; explicit configuration and per-operation values remain unchanged and are strictly validated.\n\nTo configure credentials explicitly:\n\n```ts\nimport { configureExchange, getExportQuota } from '@univerjs-pro/exchange-node';\n\nawait configureExchange({\n    license: '<license content>',\n    licenseKey: '<licenseKey content>',\n});\n\nconst quota = await getExportQuota();\n```\n\n`license` and `licenseKey` are the complete credential contents, not file paths. Provide both together. Explicit configuration completely ignores the environment. `configureExchange({})` explicitly selects Free; an incomplete pair returns `INVALID_ARGUMENT` without mixing sources. The first complete environment configuration is fixed even if a later native operation fails. An incomplete environment pair rejects without committing configuration and a new call may try again. The environment is not reread after initialization; use an explicit call to replace credentials, and await it before starting exports that should use the new configuration.\n\nExports and quota queries also accept a complete `license` / `licenseKey` pair in their options. This overrides defaults for that operation only:\n\n```ts\nconst quota = await getExportQuota({ license, licenseKey });\nconst output = await exportToBuffer(workbook, {\n    type: UniverInstanceType.UNIVER_SHEET,\n    format: ExchangeFormat.XLSX,\n    license,\n    licenseKey,\n});\n```\n\nOmitting both fields uses the default configuration. A partial pair returns `INVALID_ARGUMENT`; credentials are never combined across sources. Explicit values, including empty strings, are strictly validated as supplied; they are not treated as absent or retried with the default credentials. Per-operation credentials do not initialize or modify defaults. Successful commercial exports are tracked separately for each License ID; returning to the same ID resumes its usage. Free usage uses the shared Office/PDF quota.\n\n`getExportQuota({ license, licenseKey })` queries shared Office/PDF quota. Omit credentials to query the default configuration. It accepts no Unit type and does not check the SDK version, activation time, or type entitlement; actual exports perform those checks. Importing `/pdf` selects the PDF query backend, so PDF-only consumers do not load Office binding. No alternate backend is tried on failure.\n\nThe response has nine fields:\n\n- `licenseStatus`: `not_configured`, `expired`, or `valid` (not expired); this status does not grant permission to export. Invalid credentials reject the Promise.\n- `expiresAt`: UTC ISO export subscription expiry, or `null` if absent.\n- `observedAt`: UTC ISO snapshot time.\n- `limit`, `used`, `reserved`, `remaining`: monthly limit, successful uses, in-flight uses and available balance; all `null` when unlimited.\n- `periodStart`, `periodEnd`: UTC ISO monthly quota bounds, inclusive start and exclusive end; `null` when unlimited.\n\nQueries neither reserve nor consume quota. Before activation, limited quota describes the first authorization month with a future `periodStart`. Zero remaining is a successful query. The snapshot does not guarantee admission of the next export. `periodEnd` is the next monthly quota boundary, while `expiresAt` ends the subscription. A valid subscription always uses commercial quota: exhaustion or unavailable type entitlement cannot select Free. Subscription expiry selects the existing remaining Free quota without resetting it.\n\nFree allows 10 successful exports per authorization month. Purchased licenses determine commercial quota, concurrency and version entitlements. Neither Free nor commercial licenses impose file-size or cell-count limits. Use the query response for the applicable period and balance. Unused monthly quota does not carry over. Office and PDF exports share quota. Imports do not require export authorization and do not consume export quota.\n\nOrdinary-user installation and export do not require sudo. The process needs writable local persistent storage for export usage. If that storage cannot be used, the SDK returns `LICENSE_USAGE_STORAGE_ERROR`; preserve the complete error and contact technical support.\n\nA successful Buffer conversion counts once. File APIs then write that Buffer: a subsequent file-write failure is `IO_ERROR` and does not refund the conversion. Upload or download failures after successful conversion do not refund usage either. Each successful repeated conversion counts again. When quota is exhausted, wait for the next authorization period or update the license.\n\nErrors use `ExchangeError` with a stable `code`, a diagnostic `message` containing the concrete failure reason, and `cause` where available. Handle `code` rather than parsing message text. Applications decide how to log errors and what to display to their end users.\n\nThe following table compares quota queries and actual exports. Both APIs return Promises; use `await` and `try/catch` to handle failures.\n\n| Code | Operation | Meaning and action |\n| --- | --- | --- |\n| `LICENSE_EXPORT_QUOTA_EXCEEDED` | Export only | Insufficient export quota for the current period. Query quota or contact sales to adjust the license. |\n| `LICENSE_INVALID` | Query, export | The license is invalid. Check the complete credentials or contact the license provider for an update. |\n| `LICENSE_POLICY_INVALID` | Query, export | The authorization configuration does not meet SDK requirements. Contact the license provider for an update. |\n| `LICENSE_UNIT_TYPE_REJECTED` | Export only | This export type is not licensed or its type entitlement has expired. Provide a valid license covering the type. |\n| `LICENSE_NOT_YET_EFFECTIVE` | Export only | Authorization has not started yet. Use it after its effective date. |\n| `LICENSE_VERSION_NOT_ALLOWED` | Export only | The current SDK version is outside the licensed range. Use a matching version or update the license. |\n| `LICENSE_CONCURRENCY_TIMEOUT` | Export only | Waiting for available export concurrency timed out. Reduce concurrent exports before submitting again. |\n| `LICENSE_USAGE_STATE_INVALID` | Query, export | License usage status cannot be verified. Preserve the error and contact technical support. |\n| `LICENSE_USAGE_STORAGE_ERROR` | Query, export | License usage processing failed. Preserve the error, contact technical support, and avoid automatic resubmission. |\n| `INVALID_ARGUMENT` | Query, export | Incomplete arguments or credentials. Check the configuration. |\n| `NATIVE_LOAD_FAILED` | Query, export | A native SDK component could not load. Check package and runtime compatibility. |\n| `IO_ERROR` | Export only | File input/output failed. An output-write failure after successful conversion has already consumed an export. |\n| `UNSUPPORTED_FORMAT` | Export only | The format is unsupported or incompatible with the Unit type. Check export options. |\n| `INVALID_FILE` | Export only | The conversion input is invalid. Check its contents. |\n| `INCOMPLETE_SNAPSHOT` | Export only | Export data is incomplete. Provide complete data or a complete Snapshot. |\n| `CONVERSION_FAILED` | Export only | Conversion failed. Retain the error and check the input contents. |\n\nApplications may derive expiry reminders from `licenseStatus` and `expiresAt`. No separate notice list or automatic logging is emitted. Supplied invalid credentials reject configuration, queries and exports with `LICENSE_INVALID`. If usage processing fails, do not infer whether a count was consumed from the error alone; preserve the complete error for support.\nESM and CommonJS share configuration within the same JavaScript context. Each `worker_threads` Worker must configure itself or initialize from its environment; Workers share the export quota, not their configuration. Exports capture configuration when the public method is called; a later configuration change applies to subsequently started exports. A failed explicit configuration leaves the previous configuration in effect.\n\nThe Office Node Binding supports loading in successive short-lived Workers. Published Linux GNU Binding 1.0.6 and 1.1.0 can crash the entire process when the first loading Worker exits and a later Worker loads the addon again. The correction upgrades the bundled mimalloc v3.3.2 allocator to Microsoft's v3.6.1 release, using its official Rust bindings and C sources pinned to one release commit. It requires an updated native Binding artifact; the JS wrapper alone cannot repair an older binary. API signatures and the configuration protocol are unchanged. The Exchange CLI shares the allocator dependency and also uses the official v3.6.1 implementation when rebuilt; the independent Formula addon and Go PDF runtime do not switch allocators. The Office Node Binding and CLI use the upstream allocator defaults. Mimalloc can retain freed pages for reuse by subsequent conversions; upgrade validation includes peak RSS across repeated calls. Upstream `MIMALLOC_*` environment controls can be set before the first native load. Source builds fetch the pinned public Git dependency through Cargo; users of prebuilt npm Binding packages do not need to fetch it. Worker threads share a process address space and do not isolate fatal native failures; use separate processes when that isolation is required. Automated lifecycle checks exercise loading, repeated Worker teardown, and completed conversions; terminating a conversion while native work is in flight is not covered by those checks.\n\n## Advanced packaging\n\nStandard npm installation is recommended. `UNIVER_NODE_SDK_RUNTIME_DIR_OVERRIDE` is an escape hatch for external packagers; our own build and runtime flows do not set it.\nFor example, a packaging script can collect the complete SDK runtime resource directory into `./sdk-runtime`, then set this variable to the directory's absolute runtime path before first SDK use.\nPreserve the directory layout and use resources matching the SDK and target platform. Do not hard-code filenames, file counts or binding package names in the script; these can change between SDK releases.\n\n## Optional PDF support\n\nInstall the optional backend with the SDK, then execute the PDF side-effect import before converting:\n\n```sh\npnpm add @univerjs-pro/exchange-node @univerjs-pro/exchange-pdf-node-binding\n```\n\n```ts\nimport '@univerjs-pro/exchange-node/pdf';\nimport { UniverInstanceType } from '@univerjs/core';\nimport { ExchangeFormat, importBuffer, exportToBuffer } from '@univerjs-pro/exchange-node';\n\nconst pdf = await importBuffer(pdfBuffer, {\n    type: UniverInstanceType.UNIVER_PDF,\n    format: ExchangeFormat.PDF,\n    fileName: 'input.pdf',\n});\n\nconst output = await exportToBuffer(pdf, {\n    type: UniverInstanceType.UNIVER_PDF,\n    format: ExchangeFormat.PDF,\n    onDiagnostics: async (items) => {\n        // The application decides whether to display or record these messages.\n        for (const item of items) console.warn(item.code, item.message, item.details);\n    },\n});\n```\n\nThe same eight Buffer/File and Unit/Snapshot methods support PDF. PDF conversion operates between PDF files and PDF Unit/Snapshot data; it does not convert Office units to PDF. The optional backend loads when a PDF conversion, PDF quota query, or configuration after registration is requested. Import `/pdf` before calling `configureExchange` in PDF-only applications so configuration uses the PDF backend without loading the Office native library. The side-effect import itself does not load native code. Office-only applications do not need it. Without the runtime side-effect import, PDF conversion rejects with `UNSUPPORTED_FORMAT`. TypeScript augmentation applies to the compilation program; importing only its types does not initialize the runtime.\n\nPDF 待发布的目标覆盖 Linux x64／ARM64（以 glibc 2.28 或 Alpine 3.20 musl 为最低验收环境）、macOS x64／ARM64 及 Windows x64。Windows ARM64 暂不支持。GNU 的最低 libc 基线与 Office／Formula 一致；Alpine 用户需配套包含 musl 平台包的新 PDF 加载器，既有版本尚无此支持。现有 glibc 用户可沿兼容依赖范围升级，无须修改应用 API、snapshot 或文件存取方式。每个平台包只包含一个 `.node` 文件，不需要额外 Go 可执行程序或项目动态库。新增目标的支持范围需经完整包组合验收后确认。\n\nFor services that require process-level fault isolation, run PDF conversion in a dedicated Node process or conversion worker service. The addon runs native code in its host process; `worker_threads` and asynchronous APIs do not isolate fatal native crashes. Limit in-flight conversions based on document size and measured process memory, and report abnormal worker exits as task failures.\n\nImported PDF units follow the existing JS SDK snapshot contract. Preserve `document`, `sourceDocumentRef`, resource bindings, metadata, and `editState` when saving them. The source PDF is a managed file resource, resolved through `files.load`; applications do not need to keep a separate upload or supply another export input. Snapshot APIs retain the existing complete aggregate input requirement. File loading does not expand page fragments or generate edit instructions; existing requirements for saved semantic edit instructions remain in effect.\n\nPDF imports use the same `files.store` contract as Office: each distinct binary payload is offered once, including the source PDF, font programs, images, page rasters, native streams and embedded attachments. Returning `reference` replaces inline bytes with existing `resourceBindings` and stream references. Attachment names and document/page/associated-file relationships remain in the existing attachment assets; sharing bytes does not merge those relationships. Resource identities are scoped to their imported source, independently of the storage keys used to reuse identical bytes. Without a storage callback, resources remain inline.\n\nPDF exports resolve required references through `files.load`, once per distinct reference in the Unit, and use the existing source-PDF edit exporter. If the exporter can reconstruct edits without a saved instruction file, failure to load that optional file preserves its existing fallback; required file failures still propagate. Loading prepares a copy and leaves the supplied Unit unchanged. Use a compatible PDF binding declared by the SDK's optional peer dependency. If you supply a native runtime directory, keep its PDF binary paired with the SDK. Edited exports reserialize PDF content and do not preserve original signature validity. PDF accepts valid `ole` options without requesting Office child Units.\n\nFile callbacks carry file metadata and bytes/references, not embedding classifications. Use the document's existing attachment and drawing metadata to distinguish ordinary files from OLE objects. Existing OLE SDK preview, online conversion and binding behavior continues to own those actions.\n\nExport fails by default if a required image is missing or undecodable. Set `strictResources: false` only when the application accepts omission of those images. It does not ignore file IO, engine, or unrelated conversion failures. Use `onDiagnostics` to receive the resulting messages and their asset/page identifiers.\n\n`onDiagnostics` is optional on import and export. It receives one nonempty batch per successful conversion and is awaited before the method returns or writes the destination file. An empty batch does not invoke it; the SDK does not log or retain a global history. Conversion failures reject the Promise instead of reporting a successful diagnostic batch. Exceptions thrown or rejected by the application's callback propagate unchanged. A destination write failure uses `IO_ERROR`; it does not trigger another conversion.\n\nHandle conversion failures through the existing `ExchangeError` and its `code`. `NATIVE_LOAD_FAILED` means that the optional platform package could not initialize; `CONVERSION_FAILED` means the conversion failed. For PDF resource failures, the message includes the applicable asset, page and entry identifiers; the native error remains available as `error.cause`. These failures do not invoke `onDiagnostics`.\n\nThe PDF backend uses private per-conversion temporary files and requires writable OS temporary storage. Embedded resources are materialized there and removed before returning. Existing system/configured font lookup still applies; this package does not promise identical font appearance across hosts.","users":{}}