diff --git a/README.md b/README.md
index 7c72ee4..fb0ddce 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,7 @@
Important: Change your current grammar to "JavaScript Node" (short cut: Shift+Ctrl+Alt+N)
* Cmd+R - run current file within node
-* req => var sys = require('sys');
-* mixin => process.mixin(exports, {...});
+* req => var util = require('util');
* exp => exports.func_name = function() {...};
* process snippets
* .lis - .addListener(...)
@@ -25,6 +24,9 @@ Important: Change your current grammar to "JavaScript Node" (short cut: Shift+Ct
Others:
* app => if (module.id == require.main.id) { .. }
+* cons => console.log('');
+* fun => function function_name(argument) { // body...}
+* set => setTimeout(function, n);
## Installation
@@ -40,10 +42,12 @@ Alternately, in TextMate, from your drop down menu, select Bundles -> Bundle Edi
The Node.JS TM Bundle is currently authored by Dr Nic Williams. Contributors and co-maintainers are welcome.
* **Dr Nic** - Author/Main contributor
+* **Jasper Lievisse Adriaanse** - Contributor
## License
Copyright (c) 2009-2010 Dr Nic Williams, Mocra
+Copyright (c) 2012 Jasper Lievisse Adriaanse
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/Snippets/mixin.tmSnippet b/Snippets/cons.tmSnippet
similarity index 66%
rename from Snippets/mixin.tmSnippet
rename to Snippets/cons.tmSnippet
index 9d22424..b0b3291 100644
--- a/Snippets/mixin.tmSnippet
+++ b/Snippets/cons.tmSnippet
@@ -3,16 +3,14 @@
content
- process.mixin(${1:exports}, {
- $0
-});
+ console.log(${1:''});
name
- mixin
+ cons
scope
source.js.node
tabTrigger
- mixin
+ cons
uuid
- E114B311-9CD7-422E-BBDB-DF8930F5C5CD
+ 959A3067-5070-4F88-B5AB-02D266A8E381
diff --git a/Snippets/function.tmSnippet b/Snippets/function.tmSnippet
new file mode 100644
index 0000000..0f29193
--- /dev/null
+++ b/Snippets/function.tmSnippet
@@ -0,0 +1,18 @@
+
+
+
+
+ content
+ function ${1:function_name}(${2:argument}) {
+ ${0:// body...}
+}
+ name
+ function
+ scope
+ source.js.node
+ tabTrigger
+ fun
+ uuid
+ EBED7197-DE57-4621-836D-A1AA30BEFA89
+
+
diff --git a/Snippets/require.tmSnippet b/Snippets/require.tmSnippet
index 74a3fd0..bbf06d3 100644
--- a/Snippets/require.tmSnippet
+++ b/Snippets/require.tmSnippet
@@ -3,7 +3,7 @@
content
- var ${2:${1/(?:_|-)([A-Za-z0-9]+)(?:\.js)?/(?2::\u$1)/g}} = require('${1:sys}')$0;
+ var ${2:${1/(?:_|-)([A-Za-z0-9]+)(?:\.js)?/(?2::\u$1)/g}} = require('${1:util}')$0;
name
require
scope
diff --git a/Snippets/settimeout.tmSnippet b/Snippets/settimeout.tmSnippet
new file mode 100644
index 0000000..7e373b3
--- /dev/null
+++ b/Snippets/settimeout.tmSnippet
@@ -0,0 +1,16 @@
+
+
+
+
+ content
+ setTimeout(${1:function}, ${2:n});
+ name
+ settimeout
+ scope
+ source.js.node
+ tabTrigger
+ set
+ uuid
+ 1B9B9A18-2314-4FB1-ACF5-3A8A18AE9988
+
+
diff --git a/info.plist b/info.plist
index 3ee62d7..650c348 100644
--- a/info.plist
+++ b/info.plist
@@ -62,7 +62,6 @@
17076F45-FE22-4123-AD00-0C8E31BC2EB8
5ECAB6F6-77CD-4A15-A646-BE4B01B3944F
59AF7588-E4A5-4BD4-8CF0-50EDB8068520
- E114B311-9CD7-422E-BBDB-DF8930F5C5CD
5997D597-577F-4521-86D8-7119B0D86D1B
180C087D-09AE-4F15-8861-2ED02DDD673F
9D08A939-64FB-42F6-BE49-774D1BFB3954
@@ -79,6 +78,10 @@
D63101FB-D494-44CD-BE60-F26F68FF6BE3
D2F95B9E-1273-477A-9018-05C91E8653B4
483223F6-814F-4836-A105-DE8F6BA56281
+ B79BFD7D-FF06-402C-B2BA-F80EC68834D1
+ 959A3067-5070-4F88-B5AB-02D266A8E381
+ 1B9B9A18-2314-4FB1-ACF5-3A8A18AE9988
+ EBED7197-DE57-4621-836D-A1AA30BEFA89
uuid
B4B8CCA9-FD56-471B-B7D8-A7B1A1B06E78