0.1.20 • Published 17 days ago
@3-/protojs v0.1.20
@3-/protojs
#!/usr/bin/env coffee
> @3-/protojs
@3-/uridir
ansis > greenBright
path > join
fs > readdirSync
ROOT = uridir(import.meta)
console.log await protojs join ROOT, 'api.proto'
output :
auth.proto
syntax = "proto3";
package api;
enum Stat {
Ok = 0; // 成功
AccountInvalid = 1; // 账号格式无效
PasswordInvalid = 2; // 密码错误
}
message Sign
{
Stat Stat = 1;
}
captcha.proto
syntax = "proto3";
package api;
message Captcha
{
uint64 id = 1;
bytes img = 2;
repeated string svg_li = 3;
}
tran.proto
syntax = "proto3";
package api;
message Translated
{
repeated string htm = 1;
repeated string txt = 2;
}
0.1.20
17 days ago
0.1.18
1 month ago
0.1.19
1 month ago
0.1.15
4 months ago
0.1.16
4 months ago
0.1.17
4 months ago
0.1.11
5 months ago
0.1.12
5 months ago
0.1.13
5 months ago
0.1.14
5 months ago
0.1.10
6 months ago
0.1.2
6 months ago
0.1.1
6 months ago
0.1.8
6 months ago
0.1.7
6 months ago
0.1.9
6 months ago
0.1.4
6 months ago
0.1.3
6 months ago
0.0.4
6 months ago
0.1.6
6 months ago
0.1.5
6 months ago
0.0.3
7 months ago
0.0.2
7 months ago
0.0.1
7 months ago