[Pkg-javascript-commits] [node-parents] 02/29: working examples

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 20 13:47:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-parents.

commit eb79abfe191313d2c1d60dc1fcab0f04c1727768
Author: James Halliday <mail at substack.net>
Date:   Thu Jul 12 01:32:25 2012 -0700

    working examples
---
 example/dirname.js | 3 +++
 example/win32.js   | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/example/dirname.js b/example/dirname.js
new file mode 100644
index 0000000..c9d381b
--- /dev/null
+++ b/example/dirname.js
@@ -0,0 +1,3 @@
+var parents = require('../');
+var dirs = parents(__dirname);
+console.dir(dirs);
diff --git a/example/win32.js b/example/win32.js
new file mode 100644
index 0000000..11b85d6
--- /dev/null
+++ b/example/win32.js
@@ -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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-parents.git



More information about the Pkg-javascript-commits mailing list