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; -}