Sha256: 70f62a0036eea5be661b557cf49647796619b08b1c62faebee19ef5577fb1a3d

Contents?: true

Size: 1.26 KB

Versions: 69

Compression:

Stored size: 1.26 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]{@link AsyncFunction} to the
 * `console` using `console.dir` to display the properties of the resulting object.
 * Only works in Node.js or in browsers that support `console.dir` and
 * `console.error` (such as FF and Chrome).
 * If multiple arguments are returned from the async function,
 * `console.dir` is called on each argument in order.
 *
 * @name dir
 * @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.dir(hello, 'world');
 * {hello: 'world'}
 */
exports.default = (0, _consoleFunc2.default)('dir');
module.exports = exports['default'];

Version data entries

69 entries across 67 versions & 12 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/async/dir.js
disco_app-0.18.0 test/dummy/node_modules/async/dir.js
disco_app-0.18.2 test/dummy/node_modules/async/dir.js
appmap-0.72.2 ./node_modules/async/dir.js
appmap-0.72.1 ./node_modules/async/dir.js
appmap-0.72.0 ./node_modules/async/dir.js
appmap-0.71.0 ./node_modules/async/dir.js
disco_app-0.16.1 test/dummy/node_modules/async/dir.js
appmap-0.70.2 ./node_modules/async/dir.js
appmap-0.70.1 ./node_modules/async/dir.js
appmap-0.70.0 ./node_modules/async/dir.js
appmap-0.69.0 ./node_modules/async/dir.js
appmap-0.68.2 ./node_modules/async/dir.js
appmap-0.68.1 ./node_modules/async/dir.js
disco_app-0.15.2 test/dummy/node_modules/async/dir.js
appmap-0.68.0 ./node_modules/async/dir.js
appmap-0.67.1 ./node_modules/async/dir.js
appmap-0.67.0 ./node_modules/async/dir.js
disco_app-0.18.4 test/dummy/node_modules/async/dir.js
disco_app-0.18.1 test/dummy/node_modules/async/dir.js