How to print Node WebKit version

…衆ロ難τιáo~ 提交于 2019-12-07 04:18:49

问题


If I wanted to check which Node WebKit version I'm using, how would I do that from a command line?


回答1:


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']

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

If you are using Node Webkit Builder then use nwbuild -v or nwbuild --version




回答2:


Launch node webkit from command line:

nw

Then type nw:version in the address bar to get the version number.




回答3:


nw ls from the command line gets a list of local cached nwjs versions, which may be helpful.



来源:https://stackoverflow.com/questions/28761447/how-to-print-node-webkit-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!