fazlurr
2/7/2017 - 6:48 AM

JavaScript Module Function snippet

JavaScript Module Function snippet

<snippet>
	<content><![CDATA[
// ${1:functionName}
module.${1:functionName} = function (${2:params}) {
	${3://body}
};
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>mof</tabTrigger>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<scope>source.js</scope>
</snippet>