{"name":"@bufbuild/protobuf","version":"2.0.0-beta.2","license":"(Apache-2.0 AND BSD-3-Clause)","_id":"@bufbuild/protobuf@2.0.0-beta.2","homepage":"https://github.com/bufbuild/protobuf-es#readme","bugs":{"url":"https://github.com/bufbuild/protobuf-es/issues"},"dist":{"shasum":"5b8e18ccc739517fb9e405baa6a7415ca14d006e","tarball":"http://registry-npm.ywwl.com/@bufbuild/protobuf/download/@bufbuild/protobuf-2.0.0-beta.2.tgz","fileCount":247,"integrity":"sha512-lt6sN5KjToflDcMyprMlR3mVu1BWjdEMVbgqk0vwIjczo2Ke2x+bM3rW1N37kg7XnTvZ3HbkuuuLFJi4VCSUUQ==","signatures":[{"sig":"MEUCIB8BdCvDvuKL1jbfy/JIwvM7vtakpItot8IXE31Zp0waAiEAkJJWBY7nld6yO/xbuwDTLwC7YE3xvnz4tNJCZotPp0U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1252384,"size":168279,"noattachment":false,"key":"/@bufbuild/protobuf/-/@bufbuild/protobuf-2.0.0-beta.2.tgz"},"main":"./dist/cjs/index.js","type":"module","types":"./dist/cjs/index.d.ts","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./wkt":{"import":"./dist/esm/wkt/index.js","require":"./dist/cjs/wkt/index.js"},"./wire":{"import":"./dist/esm/wire/index.js","require":"./dist/cjs/wire/index.js"},"./reflect":{"import":"./dist/esm/reflect/index.js","require":"./dist/cjs/reflect/index.js"},"./codegenv1":{"import":"./dist/esm/codegenv1/index.js","require":"./dist/cjs/codegenv1/index.js"}},"gitHead":"ef85a06e4d83e19613c3ce7039cfb29ad28ae020","scripts":{"attw":"attw --pack","lint":"eslint --max-warnings 0 .","build":"npm run build:cjs && npm run build:esm","format":"prettier --write --ignore-unknown '.' '!dist' '!src/wkt/gen'","prebuild":"rm -rf ./dist/*","build:cjs":"../../node_modules/typescript/bin/tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'","build:esm":"../../node_modules/typescript/bin/tsc --project tsconfig.json --outDir ./dist/esm","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 src/wkt/gen","license-header":"license-header --ignore 'src/wire/varint.ts'","bootstrap:inject":"node scripts/bootstrap-inject.mjs src","prebootstrap:wkt":"rm -rf .tmp && mkdir -p .tmp && cp -rp src/wkt/gen/* .tmp","postbootstrap:wkt":"diff >/dev/null -r .tmp src/wkt/gen && cp -rp .tmp/* src/wkt/gen || true"},"_npmUser":{"name":"tstamm-buf","email":"tstamm@buf.build"},"repository":{"url":"git+https://github.com/bufbuild/protobuf-es.git","type":"git","directory":"packages/protobuf"},"_npmVersion":"10.1.0","description":"A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.","directories":{},"sideEffects":false,"_nodeVersion":"20.9.0","typesVersions":{"*":{"wkt":["./dist/cjs/wkt/index.d.ts"],"wire":["./dist/cjs/wire/index.d.ts"],"reflect":["./dist/cjs/reflect/index.d.ts"],"codegenv1":["./dist/cjs/codegenv1/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"upstream-protobuf":"*"},"_npmOperationalInternal":{"tmp":"tmp/protobuf_2.0.0-beta.2_1719413804670_0.5795644109149793","host":"s3://npm-registry-packages"},"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":1719413804974,"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"},{"name":"cmahony","email":"cmahony@buf.build"},{"name":"kmcdonald-buf","email":"kmcdonald@buf.build"}],"_cnpm_publish_time":1719413804974,"dist-tags":{"latest":"2.17.0","legacy":"1.10.1"}}