electron-安装

sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g electron

cnpm install node-json-rpc

https://ziahamza.github.io/webui-aria2/

  fmtsize: function(e) {
              return (e = +e) <= 1024
                ? e.toFixed(0) + " B"
                : (e /= 1024) <= 1024
                  ? e.toFixed(1) + " KB"
                  : (e /= 1024) <= 1024
                    ? e.toFixed(2) + " MB"
                    : (e /= 1024).toFixed(3) + " 
}

你可能感兴趣的:(electron-安装)