summaryrefslogtreecommitdiff
path: root/node_modules/pkginfo/examples/target-dir.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pkginfo/examples/target-dir.js')
-rw-r--r--node_modules/pkginfo/examples/target-dir.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/pkginfo/examples/target-dir.js b/node_modules/pkginfo/examples/target-dir.js
new file mode 100644
index 0000000..88770e6
--- /dev/null
+++ b/node_modules/pkginfo/examples/target-dir.js
@@ -0,0 +1,20 @@
+/*
+ * multiple-properties.js: Sample of including multiple properties from a package.json file
+ *
+ * (C) 2011, Charlie Robbins
+ *
+ */
+
+var util = require('util'),
+ path = require('path'),
+ pkginfo = require('../lib/pkginfo')(module, { dir: path.resolve(__dirname, 'subdir' )});
+
+exports.someFunction = function () {
+ console.log('some of your custom logic here');
+};
+
+console.log('Inspecting module:');
+console.dir(module.exports);
+
+console.log('\nAll exports exposed:');
+console.error(Object.keys(module.exports)); \ No newline at end of file