helper to add require clauses to node.js modules in Sublime Text 2
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
Require CommonJS Modules Helper.sublime-settings

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)


Other modules

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


With Package Control

Search "Require CommonJS Modules Helper".

With Package Decontrol