# 使用 nest-serve 转换pb

## 调用命令

```typescript
//
nest-serve proto <path>
  -p：protobufjs --path 属性
  -o: ouput文件夹
```

## 调用方法

```typescript
//

const { proto } = require('nest-serve/bin/lib/proto');
proto(path, options).then(valid => {

})
```
