Protobuf encoding for dags in JS

Is there any way to do this in JS?

ipfs dag put -f protobuf --input-enc protobuf

I have tried:

ipfs.dag.put(data, { format: "protobuf" });
// Error: No codec found for "protobuf"