Helper to add node.js "require" clause to modules.
Just press ctrl+shift+m, select the file and boom!
- Windows: ctrl+shift+m
- Linux: ctrl+shift+m
- OSx: ⌘+⇧+m (command+shift+m)
Besides any javascript file you have in your directory, use:
- native: [name] for things like "fs", "net", etc.
- module: [name] for modules inside your node_modules folder
Search "Require CommonJS Modules Helper".
With Package Decontrol
jfromaniello/sublime-node-require