resolve-protobuf-schema

WebJar for resolve-protobuf-schema

Лицензия

Лицензия

MIT
Категории

Категории

Protobuf Данные Data Structures
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

resolve-protobuf-schema
Последняя версия

Последняя версия

2.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

resolve-protobuf-schema
WebJar for resolve-protobuf-schema
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mafintosh/resolve-protobuf-schema

Скачать resolve-protobuf-schema

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/resolve-protobuf-schema/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>resolve-protobuf-schema</artifactId>
    <version>2.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/resolve-protobuf-schema/
implementation 'org.webjars.npm:resolve-protobuf-schema:2.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/resolve-protobuf-schema/
implementation ("org.webjars.npm:resolve-protobuf-schema:2.1.0")
'org.webjars.npm:resolve-protobuf-schema:jar:2.1.0'
<dependency org="org.webjars.npm" name="resolve-protobuf-schema" rev="2.1.0">
  <artifact name="resolve-protobuf-schema" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='resolve-protobuf-schema', version='2.1.0')
)
libraryDependencies += "org.webjars.npm" % "resolve-protobuf-schema" % "2.1.0"
[org.webjars.npm/resolve-protobuf-schema "2.1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : protocol-buffers-schema jar [3.3.1,4)

Модули Проекта

Данный проект не имеет модулей.

resolve-protobuf-schema

Read a protobuf schema from the disk, parse it and resolve all imports

npm install resolve-protobuf-schema

build status

Usage

Store the following example protobuf schema in test.proto

message Test {
  optional string test = 1;
}

Then run

var resolve = require('resolve-protobuf-schema')
console.log(resolve.sync('test.proto')) // prints the parsed schema

Schema imports will resolved as well

import "./test.proto"

message AnotherTest {
  optional string test = 1;
}
console.log(resolve.sync('./another-test.proto')) // will print a combined parsed schema

API

  • resolve(path, cb) read and resolve a schema
  • resolve.sync(path) sync version of resolve

License

MIT

Версии библиотеки

Версия
2.1.0
2.0.0
1.0.2