Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "cd", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "chdir in chainer fashion + read file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,3 +32,12 @@ cd? cd | ||
/* | ||
* Use try/catch for safety (non-existent dirs) | ||
*/ | ||
try { | ||
content = cd().existDir1().nonexistDir().existDir2(file2); | ||
} catch(e) { | ||
// ... | ||
} | ||
If you have cool and pragmatic idea let me know. | ||
This module is not going to grow much, there is no need for yet another bloated module. |
3935
8
108
43