/sublime-node-require

helper to add require clauses to node.js modules in Sublime Text 2

Primary LanguagePython

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)

screencast

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

Installation

With Package Control

Search "Require CommonJS Modules Helper".

jfromaniello/sublime-node-require