Skip to content

Commit

Permalink
reconfigure (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
brekk authored Oct 4, 2017
1 parent f7d9e1a commit 45707e5
Show file tree
Hide file tree
Showing 19 changed files with 1,344 additions and 1,328 deletions.
80 changes: 40 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,46 @@ const reallyCerboseConditionalLoggerWhenMultiplyingBy5 = R.pipe(

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

##### debug.makeInspectors

makeInspectors with debug

**Parameters**

- `bug` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** a debugging function, ostensibly
- `logList` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;strings>** a list of strings

**Examples**

```javascript
import bug from 'debug'
import {debug} from 'xtrace'
const [base, detail, verbose] = debug.makeInspectors(bug, [`mylib:0`, `mylib:1`, `mylib:2`])
base(`a`, (x) => JSON.stringify(x, null, 2), {data: `cool`})
```

Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;functions>** inspector functions

##### debug.makeLoggers

makeLoggers with debug

**Parameters**

- `bug` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** a debugging function, ostensibly
- `logList` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;strings>** a list of strings

**Examples**

```javascript
import bug from 'debug'
import {debug} from 'xtrace'
const [base, detail, verbose] = debug.makeInspectors(bug, [`mylib:0`, `mylib:1`, `mylib:2`])
base(`a`, {data: `cool`})
```

Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;functions>** inspector functions

##### sideEffect

The high-level abstraction for identity-closure side-effects
Expand Down Expand Up @@ -137,46 +177,6 @@ trace(`input`, 5) // only logs if DEBUG env var (e.g. DEBUG=my:custom:debugger n

Returns **any** whatever input is

##### debug.makeInspectors

makeInspectors with debug

**Parameters**

- `bug` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** a debugging function, ostensibly
- `logList` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;strings>** a list of strings

**Examples**

```javascript
import bug from 'debug'
import {debug} from 'xtrace'
const [base, detail, verbose] = debug.makeInspectors(bug, [`mylib:0`, `mylib:1`, `mylib:2`])
base(`a`, (x) => JSON.stringify(x, null, 2), {data: `cool`})
```

Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;functions>** inspector functions

##### debug.makeLoggers

makeLoggers with debug

**Parameters**

- `bug` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** a debugging function, ostensibly
- `logList` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;strings>** a list of strings

**Examples**

```javascript
import bug from 'debug'
import {debug} from 'xtrace'
const [base, detail, verbose] = debug.makeInspectors(bug, [`mylib:0`, `mylib:1`, `mylib:2`])
base(`a`, {data: `cool`})
```

Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;functions>** inspector functions

#### Similar efforts:

- `composition-trace` - <https://github.com/stevemao/composition-trace>
160 changes: 71 additions & 89 deletions dependencies.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dependency-graph.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"core/index.js":["core/side-effect.js","core/trace.js","core/xtrace.js"],"core/side-effect.js":["katsu-curry/katsu-curry.js"],"core/trace.js":["core/xtrace.js"],"debug/index.js":["Ⓜ f-utility/f-utility.js","core/side-effect.js"],"index.js":["katsu-curry/katsu-curry.js","core/index.js","debug/index.js"]}
{"debug.js":["Ⓜ f-utility/f-utility.js","side-effect.js"],"index.js":["f-utility/f-utility.js","debug.js","side-effect.js","trace.js","xtrace.js"],"side-effect.js":["f-utility/f-utility.js"],"trace.js":["xtrace.js"]}
Loading

0 comments on commit 45707e5

Please sign in to comment.