vim-snippets/UltiSnips/javascript-node.snippets

7 lines
150 B
Plaintext
Raw Normal View History

2015-07-29 10:44:20 -04:00
priority -50
snippet vreq "assign a CommonJS-style module to a var"
var ${0:${1/(.+\/)*(\w+)(-|\b|$)(\..+$)?/\u$2/g}} = require('${1}');
endsnippet