Permalink
Browse files

working examples

  • Loading branch information...
1 parent e590ea0 commit eb79abfe191313d2c1d60dc1fcab0f04c1727768 @substack committed Jul 12, 2012
Showing with 8 additions and 0 deletions.
  1. +3 −0 example/dirname.js
  2. +5 −0 example/win32.js
View
@@ -0,0 +1,3 @@
+var parents = require('../');
+var dirs = parents(__dirname);
+console.dir(dirs);
View
@@ -0,0 +1,5 @@
+var parents = require('../');
+var dir = 'C:\\Program Files\\Maxis\\Sim City 2000\\cities';
+
+var dirs = parents(dir, { platform : 'win32' });
+console.dir(dirs);

0 comments on commit eb79abf

Please sign in to comment.