summaryrefslogtreecommitdiff
path: root/node_modules/pkginfo/examples/array-argument.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/pkginfo/examples/array-argument.js')
-rw-r--r--node_modules/pkginfo/examples/array-argument.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/node_modules/pkginfo/examples/array-argument.js b/node_modules/pkginfo/examples/array-argument.js
new file mode 100644
index 0000000..b1b6848
--- /dev/null
+++ b/node_modules/pkginfo/examples/array-argument.js
@@ -0,0 +1,20 @@
+/*
+ * array-argument.js: Sample of including specific properties from a package.json file
+ * using Array argument syntax.
+ *
+ * (C) 2011, Charlie Robbins
+ *
+ */
+
+var util = require('util'),
+ pkginfo = require('../lib/pkginfo')(module, ['version', 'author']);
+
+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