mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/jibo-cli.git
synced 2026-06-15 21:16:09 +00:00
22 lines
546 B
JavaScript
22 lines
546 B
JavaScript
|
|
/*
|
||
|
|
* 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));
|