如何打印Node WebKit版本 [英] How to print Node WebKit version
本文介绍了如何打印Node WebKit版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我想检查我正在使用哪个 Node WebKit 版本,我该怎么办从命令行获取?
If I wanted to check which Node WebKit version I'm using, how would I do that from a command line?
推荐答案
要了解应用程序中node-webkit的版本,以便您可以确定某些API是否可用,可以使用以下方法来获取它:
To know the version of node-webkit in app so you can determine whether certain APIs are available, to get it you can use:
process.versions['node-webkit']
要快速了解您现在正在使用的node-webkit的版本,可以在工具栏中键入nw:version
,然后node-webkit将打印如下版本:
And to quickly know the node-webkit's version you are using now, you can type nw:version
in the toolbar, then node-webkit would print the versions like:
node-webkit v0.3.5
node.js v0.8.14
如果使用的是Node Webkit Builder,则使用nwbuild -v
或nwbuild --version
If you are using Node Webkit Builder then use nwbuild -v
or nwbuild --version
这篇关于如何打印Node WebKit版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文