Created
January 20, 2016 13:37
-
-
Save flpms/5344ac4ee45b63ed2d87 to your computer and use it in GitHub Desktop.
Several javascripts(ES6) snippets. Generate each <snippet> as different file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This configure your application for ES6 | |
<snippet> | |
<content><![CDATA['use strict';]]></content> | |
<tabTrigger>'us</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> | |
//This create module exports, with you using node | |
<snippet> | |
<content><![CDATA[module.exports = ${1};]]></content> | |
<tabTrigger>exp</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> | |
<snippet> | |
<content><![CDATA[const ${1} = require(${2});]]></content> | |
<tabTrigger>require</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> | |
<snippet> | |
<content><![CDATA[console.log(${1});]]></content> | |
<tabTrigger>'us</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment