tcp-background-notifier
Advanced tools
Comparing version
const notifier = require('node-notifier'); | ||
const path = require('path'); | ||
const net = require('net'); | ||
const process = require('process'); | ||
const pid = process.pid; | ||
const port = 7070; | ||
@@ -36,3 +38,3 @@ const host = ''; | ||
console.log(JSON.stringify({ err, data })); | ||
sock.write(JSON.stringify({ err, data })); | ||
sock.write(JSON.stringify({ err, data, pid })); | ||
sock.write('\r'); | ||
@@ -39,0 +41,0 @@ sock.destroy(); |
{ | ||
"name": "tcp-background-notifier", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A package that starts a node.exe background instance with an tcp server to create notifications on port 7070", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3069
2.27%62
3.33%