protocpiler

Generates javascript or typescript files based on proto files

Usage no npm install needed!

<script type="module">
  import protocpiler from 'https://cdn.skypack.dev/protocpiler';
</script>

README

Protocpiler

Protocpiler generates javascript or typescript files based on a proto contract.

It contains the protoc executable from Google which is used to create your wanted files.

Installing

Using npm

npm install protocpiler --save

Using yarn

yarn add protocpiler

Running

From proto to typescript

protocpiler typescript <input_dir> <output_dir>

From proto to javascript

protocpiler javascript <input_dir> <output_dir>

License

This project is licensed under the MIT License - see the LICENSE.md file for details

TODO

  • Build with babel