{"name":"@bufbuild/protobuf","version":"2.12.1","keywords":["protobuf","schema","typescript","ecmascript"],"license":"(Apache-2.0 AND BSD-3-Clause)","_id":"@bufbuild/protobuf@2.12.1","maintainers":[{"name":"bufdev","email":"pedge@buf.build"},{"name":"tstamm-buf","email":"tstamm@buf.build"},{"name":"bufbot","email":"bot@buf.build"},{"name":"jdailey_buf","email":"jdailey@buf.build"},{"name":"doriakeung","email":"dkeung@buf.build"}],"homepage":"https://protobufes.com/","bugs":{"url":"https://github.com/bufbuild/protobuf-es/issues"},"dist":{"shasum":"89b0a4ad6412ba55a971e107a46b6c6326ff1b8a","tarball":"http://registry-npm.ywwl.com/@bufbuild/protobuf/download/@bufbuild/protobuf-2.12.1.tgz","fileCount":308,"integrity":"sha512-BvAMfS6LrgZiryOAZ4pBYucu4wG/Ei/9o9DZ9akbREnMLbPJiom2i8b9C8IsKErQoiKqVhrerzt3kOT/RrzLHg==","signatures":[{"sig":"MEUCIF9ZSdgT09MLp732bYc06EKTlned7Z3Ma4cklzP55SLnAiEAj91Owr56L3VHcoxdGGPIIhehEbsubHvbB0N0OZLt32s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bufbuild%2fprotobuf@2.12.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1633501,"size":200861,"noattachment":false,"key":"/@bufbuild/protobuf/-/@bufbuild/protobuf-2.12.1.tgz"},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./wkt":"./src/wkt/index.ts","./wire":"./src/wire/index.ts","./reflect":"./src/reflect/index.ts","./codegenv1":"./src/codegenv1/index.ts","./codegenv2":"./src/codegenv2/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./wkt":{"import":{"types":"./dist/esm/wkt/index.d.ts","default":"./dist/esm/wkt/index.js"},"require":{"types":"./dist/commonjs/wkt/index.d.ts","default":"./dist/commonjs/wkt/index.js"}},"./wire":{"import":{"types":"./dist/esm/wire/index.d.ts","default":"./dist/esm/wire/index.js"},"require":{"types":"./dist/commonjs/wire/index.d.ts","default":"./dist/commonjs/wire/index.js"}},"./reflect":{"import":{"types":"./dist/esm/reflect/index.d.ts","default":"./dist/esm/reflect/index.js"},"require":{"types":"./dist/commonjs/reflect/index.d.ts","default":"./dist/commonjs/reflect/index.js"}},"./codegenv1":{"import":{"types":"./dist/esm/codegenv1/index.d.ts","default":"./dist/esm/codegenv1/index.js"},"require":{"types":"./dist/commonjs/codegenv1/index.d.ts","default":"./dist/commonjs/codegenv1/index.js"}},"./codegenv2":{"import":{"types":"./dist/esm/codegenv2/index.d.ts","default":"./dist/esm/codegenv2/index.js"},"require":{"types":"./dist/commonjs/codegenv2/index.d.ts","default":"./dist/commonjs/codegenv2/index.js"}},"./package.json":"./package.json"},"gitHead":"5dc9c95de21d56fb1f0cf358c2d210bd4f4558c5","scripts":{"attw":"attw --pack","lint":"biome lint --error-on-warnings","build":"tshy","format":"biome format --write","bootstrap":"npm run bootstrap:inject && npm run bootstrap:wkt","bootstrap:wkt":"protoc --es_out=src/wkt/gen --es_opt=bootstrap_wkt=true,target=ts,import_extension=js,json_types=true --proto_path $(upstream-include wkt) $(upstream-files wkt)","license-header":"license-header --ignore 'src/wire/varint.ts'","bootstrap:inject":"node scripts/bootstrap-inject.mjs src","postbootstrap:wkt":"license-header src/wkt/gen"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:82f1af05-a57a-4c4f-814b-ded7f6da32b3"}},"repository":{"url":"git+https://github.com/bufbuild/protobuf-es.git","type":"git","directory":"packages/protobuf"},"_npmVersion":"11.5.1","description":"Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.","directories":{},"sideEffects":false,"_nodeVersion":"24.5.0","typesVersions":{"*":{"wkt":["./dist/commonjs/wkt/index.d.ts"],"wire":["./dist/commonjs/wire/index.d.ts"],"reflect":["./dist/commonjs/reflect/index.d.ts"],"codegenv1":["./dist/commonjs/codegenv1/index.d.ts"],"codegenv2":["./dist/commonjs/codegenv2/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"tshy":"^4.1.3","upstream-protobuf":"*"},"_npmOperationalInternal":{"tmp":"tmp/protobuf_2.12.1_1782139895958_0.3127377655823247","host":"s3://npm-registry-packages-npm-production"},"readme":"# @bufbuild/protobuf\n\nThis package provides the runtime library for the [protoc-gen-es](https://www.npmjs.com/package/@bufbuild/protoc-gen-es)\ncode generator plugin.\n\n## Protocol Buffers for ECMAScript\n\nA complete implementation of [Protocol Buffers](https://protobuf.dev/) in TypeScript,\nsuitable for web browsers, Node.js, Deno, and Bun, created by [Buf](https://buf.build).\n\n**Protobuf-ES** is a solid, modern alternative to existing Protobuf implementations for the JavaScript ecosystem. It\nprovides a comprehensive plugin framework and decouples the base types from RPC functionality.\n\nSome additional features:\n\n- Generates pure TypeScript\n- Plain message objects, no getters/setters\n- Reflection, registries, and custom options\n- 100% conformant against the official Protobuf test suite\n- Standard plugin-based generation, works with the Buf CLI as well as `protoc`\n- Write your own code generators with [@bufbuild/protoplugin](https://www.npmjs.com/package/@bufbuild/protoplugin)\n- Pairs with [@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect) for RPC and [@bufbuild/protovalidate](https://www.npmjs.com/package/@bufbuild/protovalidate) for validation\n\n## Installation\n\n```bash\nnpm install @bufbuild/protobuf\n```\n\n## Documentation\n\nTo learn how to work with `@bufbuild/protobuf`, check out the docs for the [Runtime API](https://protobufes.com/guides/messages/)\nand the [generated code](https://protobufes.com/reference/generated-code/).\n\nOfficial documentation for the Protobuf-ES project can be found at [protobufes.com](https://protobufes.com/).\n\nFor more information on Buf, check out the official [Buf documentation](https://buf.build/docs/).\n\n## Examples\n\nA complete code example can be found in the **Protobuf-ES** repo [here](https://github.com/bufbuild/protobuf-es/tree/main/packages/protobuf-example).\n","publish_time":1782139896091,"_cnpm_publish_time":1782139896091,"dist-tags":{"latest":"2.17.0","legacy":"1.10.1"}}