From 37431941d104b3192110448c489dd1f030440709 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 31 Mar 2022 09:08:50 +0100 Subject: [PATCH] chore: remove old example This isn't valid and more and there are examples in the readme. --- example.js | 19 ------------------- example.proto | 4 ---- 2 files changed, 23 deletions(-) delete mode 100644 example.js delete mode 100644 example.proto diff --git a/example.js b/example.js deleted file mode 100644 index 4cc6483..0000000 --- a/example.js +++ /dev/null @@ -1,19 +0,0 @@ -/* eslint no-console: "off" */ -'use strict' - -var protobuf = require('./') -var path = require('path') -var fs = require('fs') - -var messages = protobuf(fs.readFileSync(path.join(__dirname, '/example.proto'))) - -var ex = { - foo: 'hello world', - num: 42 -} - -var buf = messages.Test.encode(ex) - -console.log('test message', ex) -console.log('encoded test message', buf) -console.log('encoded test message decoded', messages.Test.decode(buf)) diff --git a/example.proto b/example.proto deleted file mode 100644 index bd6e7ad..0000000 --- a/example.proto +++ /dev/null @@ -1,4 +0,0 @@ -message Test { - optional string foo = 1; - required int32 num = 2; -}