nw-dev-keybindings

1.0.1 • Public • Published

nw-dev-keybindings

"Open dev tools" and "refresh page" keybindings for NW.js.

Skips creating bindings if you are not on the SDK version.

Written in glorius ES5 (that means it runs in all version of NW.js, even super old ones).

Usage

  1. npm install --save nw-dev-keybindings
  2. Add this to your HTML file:
<script>
const nwDevKeyBindings = require('nw-dev-keybindings');
nwDevKeyBindings(window);
</script>

Then, if you are in the SDK version of NW.js, you'll be able to run these commands:

Key binding Outcome
F5 Soft refresh
Shift+F5 Refresh ignoring cache
Command+Shift+R Refresh ignoring cache
Ctrl+F5 Hard refresh
Ctrl+R Hard refresh
Command+R Hard refresh
F12 Open Dev Tools
Ctrl+Shift+I Open Dev Tools
Option+Shift+I Open Dev Tools

Package Sidebar

Install

npm i nw-dev-keybindings

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

4.71 kB

Total Files

4

Last publish

Collaborators

  • thejaredwilcurt