aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/pkginfo/examples/object-argument.js
blob: 28420c8546dc58305147c1b148a2eb8f31759820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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));