Wrap any website as a native desktop app for macOS or Windows.
Takes a URL, a title and an icon and produces a standalone desktop application around that site using NW.js — useful for turning a web app you use daily into something that lives in the Dock or Start menu.
npm install -g websitewrapperwebsitewrapper -u https://example.com -t "Example" -i ~/icons/example.icnsThe result is written to a build folder in the current directory.
| Flag | Description | Default |
|---|---|---|
-u, --url <url> |
URL of the site to wrap | http://www.robertgabriel.ninja |
-t, --title <title> |
Window and app title | websiteWrapper |
-i, --icon <icon> |
Full path to an .icns icon |
bundled placeholder |
-V, --version |
Print the version |
To convert a PNG to .icns, use iconverticons.
const siteWrapper = require('websitewrapper');
siteWrapper.create(url, title, icon);MIT © Robert James Gabriel