git ssb

1+

mixmix / scuttle-shell



Tree: 70ce48365b1af5de52899c5161883b2d6bad27ae

Files: 70ce48365b1af5de52899c5161883b2d6bad27ae / tests / json2msg.js

375 bytesRaw
1#!/usr/bin/env node
2
3var fs = require('fs');
4var readline = require('readline');
5
6var nativeMessage = require('chrome-native-messaging');
7
8var output = new nativeMessage.Output();
9
10readline.createInterface({
11 input: process.stdin,
12 output: output,
13 terminal: false
14}).on('line', function(line) {
15 output.write(JSON.parse(line));
16});
17
18output.pipe(process.stdout);
19

Built with git-ssb-web