Skip to content

Instantly share code, notes, and snippets.

@pbt001
Forked from lencioni/javascript.snippets
Created May 28, 2020 20:03
Show Gist options
  • Save pbt001/d06013985e1b97496d85afa570f03759 to your computer and use it in GitHub Desktop.
Save pbt001/d06013985e1b97496d85afa570f03759 to your computer and use it in GitHub Desktop.
module.exports snippet
snippet me "module.exports" b
module.exports = ${1:`!p snip.rv = ''.join(x.title() for x in re.sub('\.js$', '', snip.basename or 'ModuleName').split('_'))`};$0
endsnippet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment