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