summaryrefslogtreecommitdiff
path: root/node_modules/pkginfo/examples/multiple-properties.js
blob: b4b5fd61722b62d50a563d2b3629940dc2b1ca32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * multiple-properties.js: Sample of including multiple properties from a package.json file
 *
 * (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));