|
2 | 2 | <p align="center">
|
3 | 3 | <a href="https://github.com/protobufjs/protobuf.js/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/protobufjs/protobuf.js/test.yml?branch=master&label=build&logo=github" alt=""></a>
|
4 | 4 | <a href="https://github.com/protobufjs/protobuf.js/actions/workflows/release.yaml"><img src="https://img.shields.io/github/actions/workflow/status/protobufjs/protobuf.js/release.yaml?branch=master&label=release&logo=github" alt=""></a>
|
5 |
| - <a href="https://npmjs.org/package/protobufjs"><img src="https://img.shields.io/npm/v/protobufjs.svg?logo=npm" alt=""></a> |
6 |
| - <a href="https://npmjs.org/package/protobufjs"><img src="https://img.shields.io/npm/dm/protobufjs.svg?label=downloads&logo=npm" alt=""></a> |
7 |
| - <a href="https://www.jsdelivr.com/package/npm/protobufjs"><img src="https://img.shields.io/jsdelivr/npm/hm/protobufjs?label=requests&logo=jsdelivr" alt=""></a> |
| 5 | + <a href="https://npmjs.org/package/@tanglechat/protobufjs"><img src="https://img.shields.io/npm/v/@tanglechat/protobufjs.svg?logo=npm" alt=""></a> |
| 6 | + <a href="https://npmjs.org/package/@tanglechat/protobufjs"><img src="https://img.shields.io/npm/dm/@tanglechat/protobufjs.svg?label=downloads&logo=npm" alt=""></a> |
| 7 | + <a href="https://www.jsdelivr.com/package/npm/@tanglechat/protobufjs"><img src="https://img.shields.io/jsdelivr/npm/hm/@tanglechat/protobufjs?label=requests&logo=jsdelivr" alt=""></a> |
8 | 8 | </p>
|
9 | 9 |
|
10 | 10 | **Protocol Buffers** are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more, originally designed at Google ([see](https://protobuf.dev/)).
|
@@ -51,39 +51,39 @@ Installation
|
51 | 51 | ### Node.js
|
52 | 52 |
|
53 | 53 | ```sh
|
54 |
| -npm install protobufjs --save |
| 54 | +npm install @tanglechat/protobufjs --save |
55 | 55 | ```
|
56 | 56 |
|
57 | 57 | ```js
|
58 | 58 | // Static code + Reflection + .proto parser
|
59 |
| -var protobuf = require("protobufjs"); |
| 59 | +var protobuf = require("@tanglechat/protobufjs"); |
60 | 60 |
|
61 | 61 | // Static code + Reflection
|
62 |
| -var protobuf = require("protobufjs/light"); |
| 62 | +var protobuf = require("@tanglechat/protobufjs/light"); |
63 | 63 |
|
64 | 64 | // Static code only
|
65 |
| -var protobuf = require("protobufjs/minimal"); |
| 65 | +var protobuf = require("@tanglechat/protobufjs/minimal"); |
66 | 66 | ```
|
67 | 67 |
|
68 |
| -The optional [command line utility](./cli/) to generate static code and reflection bundles lives in the `protobufjs-cli` package and can be installed separately: |
| 68 | +The optional [command line utility](./cli/) to generate static code and reflection bundles lives in the `@tanglechat/protobufjs-cli` package and can be installed separately: |
69 | 69 |
|
70 | 70 | ```sh
|
71 |
| -npm install protobufjs-cli --save-dev |
| 71 | +npm install @tanglechat/protobufjs-cli --save-dev |
72 | 72 | ```
|
73 | 73 |
|
74 | 74 | ### Browsers
|
75 | 75 |
|
76 | 76 | Pick the variant matching your needs and replace the version tag with the exact [release](https://github.com/protobufjs/protobuf.js/tags) your project depends upon. For example, to use the minified full variant:
|
77 | 77 |
|
78 | 78 | ```html
|
79 |
| -< script src= "//cdn.jsdelivr.net/npm/[email protected]/dist/protobuf.min.js"></ script> |
| 79 | +< script src= "//cdn.jsdelivr.net/npm/@tanglechat/[email protected]/dist/protobuf.min.js"></ script> |
80 | 80 | ```
|
81 | 81 |
|
82 | 82 | | Distribution | Location
|
83 | 83 | |--------------|--------------------------------------------------------
|
84 |
| -| Full | <https://cdn.jsdelivr.net/npm/protobufjs/dist/> |
85 |
| -| Light | <https://cdn.jsdelivr.net/npm/protobufjs/dist/light/> |
86 |
| -| Minimal | <https://cdn.jsdelivr.net/npm/protobufjs/dist/minimal/> |
| 84 | +| Full | <https://cdn.jsdelivr.net/npm/@tanglechat/protobufjs/dist/> |
| 85 | +| Light | <https://cdn.jsdelivr.net/npm/@tanglechat/protobufjs/dist/light/> |
| 86 | +| Minimal | <https://cdn.jsdelivr.net/npm/@tanglechat/protobufjs/dist/minimal/> |
87 | 87 |
|
88 | 88 | All variants support CommonJS and AMD loaders and export globally as `window.protobuf`.
|
89 | 89 |
|
|
0 commit comments