ES6-Toolkit
A toolkit containing various commands and snippets for using ES6 today
Details
Installs
- Total 40K
- Win 18K
- Mac 16K
- Linux 7K
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
ES6-Toolkit for Sublime Text
A toolkit containing various commands and snippets for using ES6 today in Sublime
Download Details in >> Package Control
IMPORTANT
In order to be able to run the ES6 Compiler, you will need to install the NPM module
babel
globally. Please run the following command to install babel:
npm install -g babel
Features
The ES6-Toolkit comes pre-packages with lots of cool tools. Below is a short list with links to more information in the Wiki Pages:
- ES6 Completions => Wiki Link
- Compile entire JS files to JS compatible code using Babel
Coming Soon
- ES6 Inline Compiling
- Compile entire projects to ES5 using Babel
ES6 Completions
[Arrow] Arrow Functions
var => function
[Class] Class Declaration
class Classname extends AnotherClass {
constructor(args) {
// code
}
// methods
}
[generator] Generator
var generator = {
[Symbol:iterator]: function() {
var pre = 0, cur = 1;
for(;;) {
var temp = pre;
pre = cur;
cur += temp;
yield cur;
}
}
}
[let:iterator] Iterator using Let
let v = {
[Symbol.iterator]() {
let pre = 0, cur = 1;
return {
next() {
[pre, cur] = [cur, pre + cur];
return { done: false, value: cur };
}
}
}
}
[let] Let
let x = 'something';
[Map] Map
var map = new Map();
[WeakMap] WeakMap
var map = new WeakMap();
[import] Module Import
import * as mod from 'lib/package';
[System.import] Module Import via System
System.import('my-module').then(function(m) {
// code...
});
[export:variable] Module Exporting
export var myvar = value;
[Loader] Module Loading using Loader
var loader = new Loader({
global: fixup(window)
});
[System.get] Module Loading using Get
System.get('module');
[System.set] Module Loading using Set
// WARNING: System.set is not finalized yet
System.set('jquery', Module({$: $}));
[object] Object Literal
var obj = {
__proto__: theProtoObj,
handler,
toString() {
return "object";
}
}
[Promise] Promise
Promise((resolve, reject) => {
// code...
});
[Proxy] Proxy
var p = new Proxy(target, handler);
[Set] Set
var set = new Set();
[WeakSet] WeakSet
var set = new WeakSet();
[string] String Templates
${some_var}
[ForLet] For Loop using Let
for (let value of iterable) {
// do something
}
…and more!!!
Support
To learn more about the features and settings, please visit https://github.com/Stephn-R/ES6-Toolkit-for-Sublime
If you are having trouble, please contact me at steprodriguez10@gmail.com