Inserts a require() statement snippet. Type the module name or path and the variable name will have:
- Leading path information stripped
- Dashes removed with the following letter capitalized
Press Alt+R for a normal require statement, or Alt+Shift+R for a constructor require statement, where the first letter of the variable is also capitalized.
Press Alt+R and type foo-bar:
fooBar = require('foo-bar')
Press Alt+Shift+R and type foo-bar:
FooBar = require('foo-bar')