$ cnpm install dzen2-bin
dzen2 binary as a Node module.
npm install --save dzen2-bin
You need GCC and make
. apt-get install build-essential
should do the trick.
var dzenPath = require('dzen2-bin')
var spawn = require('child_process').spawn
var dzen = spawn(dzenPath, ['-dock', '-fn', 'monospace'])
dzen.stdin.write('hello world\n')
Copyright 2014 - 2016 © taobao.org |