Sha256: 2a2da4905bfccd569f745a675950a0f8fff2efd919a23f9126870b81788e8b3a

Contents?: true

Size: 1.17 KB

Versions: 69

Compression:

Stored size: 1.17 KB

Contents

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _consoleFunc = require('./internal/consoleFunc');

var _consoleFunc2 = _interopRequireDefault(_consoleFunc);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Logs the result of an `async` function to the `console`. Only works in
 * Node.js or in browsers that support `console.log` and `console.error` (such
 * as FF and Chrome). If multiple arguments are returned from the async
 * function, `console.log` is called on each argument in order.
 *
 * @name log
 * @static
 * @memberOf module:Utils
 * @method
 * @category Util
 * @param {AsyncFunction} function - The function you want to eventually apply
 * all arguments to.
 * @param {...*} arguments... - Any number of arguments to apply to the function.
 * @example
 *
 * // in a module
 * var hello = function(name, callback) {
 *     setTimeout(function() {
 *         callback(null, 'hello ' + name);
 *     }, 1000);
 * };
 *
 * // in the node repl
 * node> async.log(hello, 'world');
 * 'hello world'
 */
exports.default = (0, _consoleFunc2.default)('log');
module.exports = exports['default'];

Version data entries

69 entries across 67 versions & 12 rubygems

Version Path
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/async/log.js
disco_app-0.14.0 test/dummy/node_modules/async/log.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/async/log.js
appmap-0.66.2 ./node_modules/async/log.js
appmap-0.66.1 ./node_modules/async/log.js
appmap-0.66.0 ./node_modules/async/log.js
appmap-0.65.1 ./node_modules/async/log.js
appmap-0.65.0 ./node_modules/async/log.js
appmap-0.64.0 ./node_modules/async/log.js
appmap-0.63.0 ./node_modules/async/log.js
appmap-0.62.1 ./node_modules/async/log.js
tang-0.2.1 spec/tang_app/node_modules/async/log.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/async/log.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/async/log.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/async/log.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/async/log.js
tang-0.2.0 spec/tang_app/node_modules/async/log.js
tang-0.1.0 spec/tang_app/node_modules/async/log.js
tang-0.0.9 spec/tang_app/node_modules/async/log.js
enju_library-0.3.8 spec/dummy/node_modules/async/log.js