root / HServer / 00.Server / 00.Program / node_modules / async / dir.js
이력 | 보기 | 이력해설 | 다운로드 (1.23 KB)
1 | 39 | HKM | 'use strict';
|
---|---|---|---|
2 | |||
3 | Object.defineProperty(exports, "__esModule", {
|
||
4 | value: true |
||
5 | }); |
||
6 | |||
7 | var _consoleFunc = require('./internal/consoleFunc'); |
||
8 | |||
9 | var _consoleFunc2 = _interopRequireDefault(_consoleFunc);
|
||
10 | |||
11 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
||
12 | |||
13 | /**
|
||
14 | * Logs the result of an `async` function to the `console` using `console.dir`
|
||
15 | * to display the properties of the resulting object. Only works in Node.js or
|
||
16 | * in browsers that support `console.dir` and `console.error` (such as FF and
|
||
17 | * Chrome). If multiple arguments are returned from the async function,
|
||
18 | * `console.dir` is called on each argument in order.
|
||
19 | *
|
||
20 | * @name dir
|
||
21 | * @static
|
||
22 | * @memberOf module:Utils
|
||
23 | * @method
|
||
24 | * @category Util
|
||
25 | * @param {Function} function - The function you want to eventually apply all
|
||
26 | * arguments to.
|
||
27 | * @param {...*} arguments... - Any number of arguments to apply to the function.
|
||
28 | * @example
|
||
29 | *
|
||
30 | * // in a module
|
||
31 | * var hello = function(name, callback) {
|
||
32 | * setTimeout(function() {
|
||
33 | * callback(null, {hello: name});
|
||
34 | * }, 1000);
|
||
35 | * };
|
||
36 | *
|
||
37 | * // in the node repl
|
||
38 | * node> async.dir(hello, 'world');
|
||
39 | * {hello: 'world'}
|
||
40 | */
|
||
41 | exports.default = (0, _consoleFunc2.default)('dir'); |
||
42 | module.exports = exports['default']; |