Permalink
Browse files

Added ce, ct, okfe.

  • Loading branch information...
1 parent a970800 commit 8de509bab284fe6ae2bf1cf38a6a4fa7245ac85d @jprichardson committed Dec 1, 2012
View
@@ -1,3 +1,9 @@
+2012-12-01
+----------
+* Added `console.error` **[ce]**
+* Added `console.trace` **[ct]**
+* Added `Object.keys(obj).forEach...` **[okfe]**
+
2012-11-26
----------
* Added `process.exit` **[pe]**.
View
@@ -40,6 +40,20 @@ function(${1:arguments}) {
```
+### [cd] console.dir
+
+```javascript
+console.dir(${1:obj})${0}
+```
+
+
+### [ce] console.error
+
+```javascript
+console.error(${1:error})${0}
+```
+
+
### [cl] console.log
```javascript
@@ -54,12 +68,12 @@ console.log(require('util').inspect(${1:obj}, true, ${2:10}, true))${0}
```
-### [cd] console.dir
+### [ct] console.trace
```javascript
-console.dir(${1:obj})${0}
+console.trace(${1:msg})${0}
```
-
+
### [fn] function
@@ -77,6 +91,15 @@ module.exports = ${1}
```
+### [okfe] Objects.keys and forEach
+
+```js
+Object.keys(${1:obj}).forEach(function(key) {
+ ${0:// body...}
+})
+```
+
+
### [pe] process.exit
```javascript
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[
+console.error(${1:error})${0}
+]]></content>
+ <tabTrigger>ce</tabTrigger>
+ <scope>source.js</scope>
+ <description>console.error</description>
+</snippet>
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[
+console.trace(${1:error})${0}
+]]></content>
+ <tabTrigger>ct</tabTrigger>
+ <scope>source.js</scope>
+ <description>console.trace</description>
+</snippet>
@@ -0,0 +1,9 @@
+<snippet>
+ <content><![CDATA[Object.keys(${1:obj}).forEach(function(key) {
+ ${0:// body...}
+})
+]]></content>
+ <tabTrigger>okfn</tabTrigger>
+ <scope>source.js</scope>
+ <description>Object.keys...forEach</description>
+</snippet>

0 comments on commit 8de509b

Please sign in to comment.