protobufjs
Version:
Protocol Buffers for JavaScript.
32 lines (23 loc) • 883 B
Markdown
This folder contains prebuilt browser versions of [protobuf.js](https://github.com/dcodeIO/protobuf.js). When sending pull requests, it is not required to update these.
Prebuilt files are in source control to enable pain-free frontend respectively CDN usage:
CDN usage
---------
Development:
```
<script src="//cdn.rawgit.com/dcodeIO/protobuf.js/6.0.0/dist/protobuf.js"></script>
```
Production:
```
<script src="//cdn.rawgit.com/dcodeIO/protobuf.js/6.0.0/dist/protobuf.min.js"></script>
```
**NOTE:** Remember to replace the version tag with the exact [release](https://github.com/dcodeIO/protobuf.js/releases) your project depends upon.
Frontend usage
--------------
Development:
```
<script src="node_modules/protobufjs/dist/protobuf.js"></script>
```
Production:
```
<script src="node_modules/protobufjs/dist/protobuf.min.js"></script>
```