node-query/node_modules/jsdoc/test/fixtures/exports.js

16 lines
345 B
JavaScript
Raw Normal View History

2014-10-20 16:56:45 -04:00
/**
* An example of a server-side JavaScript module.
* @module hello/world
* @example
* var g = require('hello/world').sayHello('Gracie');
*/
/**
* Generate a greeting.
* @param {string} [subject="world"] To whom we greet.
* @returns {string}
*/
exports.sayHello = function(subject) {
return 'Hello ' + (subject || 'World');
};