Skip to content

Instantly share code, notes, and snippets.

@justin-endler
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justin-endler/4e2124310926d7c9e3fb to your computer and use it in GitHub Desktop.
Save justin-endler/4e2124310926d7c9e3fb to your computer and use it in GitHub Desktop.
Write File snippet
<snippet>
<content><![CDATA[
(function(n,c){require('fs').writeFile('/somePath/'+n+'.html',c);})('${1:c}',${1}); // @test
]]></content>
<tabTrigger>write</tabTrigger>
<description>fs.writeFile()</description>
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment