
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
nodewebkit
Advanced tools
An installer for node-webkit.
node-webkit is an app runtime based on Chromium and node.js. For building desktop applications that will run on OSX, Windows and Linux.
Install locally to your project with: npm install nodewebkit
and then in your package.json
add a script:
{
"scripts": {
"start": "nodewebkit"
}
}
Now it will run your local project when you type npm start
.
If your project is in another folder, add the path to the project "start": "nodewebkit path/to/app"
.
You could also call the binary directly with node_modules/.bin/nodewebkit
instead of adding to your package.json
.
You can also install globally with npm install nodewebkit -g
and then in any project type nodewebkit
to run the project. Installing locally is recommended though as each project can have its own dependent version of node-webkit.
If you want a really quick example try this:
git clone https://github.com/zcbenz/nw-sample-apps && cd nw-sample-apps
npm install nodewebkit
"node_modules/.bin/nodewebkit" file-explorer
and now you should see a file explorer demo app.
There are a few (platform-specific) arguments you can pass to the nodewebkit
executable to
customize your node-webkit application:
--mac_plist <path-to-plist-file>
: (OS X only) Copies the given file to Info.plist in the app
bundle. This lets you do things like change your app's name and point to a different icon.
--mac_icon <path-to-icns-file>
: (OS X only) Copies the given .icns file to the Resources/ dir
in the app bundle. You will need to point to the file with a custom plist file as well (see
--mac_list
)
NOTE: These options will keep the copied files in the app bundle for as long as the bundle is
on the filesystem (they're not deleted between app invocations). As a result, they're not
recommended if you installed nodewebkit globally using -g
. Also note that
OS X caches these files,
so you may need to manually clear these cached files during development.
To install a spcific version of node-webkit use npm with the specific version: npm install nodewebkit@0.9.2
Please note: This npm package version tracks the version of node-webkit that will be installed, with an additional build number that is used for revisions to the installer. As such
0.9.2-1
and0.9.2-2
will both installnode-webkit@0.9.2
but the latter has newer changes to the installer.
If you would like to programmatically retrieve the path to the node-webkit binary use:
var findpath = require('nodewebkit').findpath;
var nwpath = findpath();
// nwpath will equal the path to the binary depending on your environment
If you are behind a proxy server you have to set an environment variable http_proxy
with proxy servers url:
export http_proxy="http://username:password@myproxy.com:8080"
or
export http_proxy="http://myproxy.com:8080"
node-webkit's code and this installer use the MIT license.
FAQs
A installer for node-webkit
The npm package nodewebkit receives a total of 283 weekly downloads. As such, nodewebkit popularity was classified as not popular.
We found that nodewebkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.