# @pingghost/protoc

> A tool for converting proto buffers (.proto) files into javascript files usable in Closure Compiler with Closure Library.

Latest version **1.0.2** (published 2023-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pingghost/protoc
pnpm add @pingghost/protoc
yarn add @pingghost/protoc
bun add @pingghost/protoc
```

Provides the command `protoc`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-02-19 |
| First published | 2023-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Amir Saadallah |
| Maintainers | pingghost |

## Links

- npm: https://www.npmjs.com/package/@pingghost/protoc
- Repository: https://github.com/amirping/node-protoc
- Homepage: https://github.com/amirping/node-protoc#readme
- Issues: https://github.com/amirping/node-protoc/issues
- npm.io page: https://npm.io/package/@pingghost/protoc

## Dependencies (7)

- [glob](https://npm.io/package/glob.md) ^7.2.3
- [uuid](https://npm.io/package/uuid.md) ^9.0.0
- [vinyl](https://npm.io/package/vinyl.md) ^2.2.1
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.6
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [unzipper](https://npm.io/package/unzipper.md) ^0.10.11
- [node-fetch](https://npm.io/package/node-fetch.md) ^3.2.10

## Recent versions

- 1.0.2 (latest) — 2023-02-19

## README

# Protocol Buffers for Node
A wrapper in Node for the compiled protoc from https://github.com/protocolbuffers/protobuf.

## Version
It's currently using Protocol Buffers `v3.20.3`.

## Platforms
Google only provides binary files for Windows, Linux and OSX in x86_64 and x86_32.

## Examples
There's currently no documentation. Hopefully this example will help.

```JavaScript
var protoc = require("protoc");

protoc.library(["path/to/file.proto", "path/to/file2.proto"], function(err, files) {
  if (err) {
    console.error(err);
    return;
  }

  // Handle the JavaScript Vinyl files.
  // These files can be used in Google Closure Compiler,
  // but they require the files in
  // https://github.com/google/protobuf/tree/master/js
  
  // ...
});
```

It's also possible to directly call the protoc binary file:
```
npx protoc --help
```

---
_Source: https://npm.io/package/@pingghost/protoc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
