0.1.0 • Published 7 years ago
trace-t v0.1.0
trace-t
functions for tracing and monitoring execution
installation
yarn add trace-t
or
npm install trace-t --save
usage
import trace from 'trace-t'
const x = 42
const r = trace('x is')(x)
// r === x
outputs
x is 42
api
trace
trace: (...ms: Array<{}>) => <A>(x: A) => A
traceStack
traceStack: (...ms: Array<{}>) => <A>(x: A) => A
traceUsing
traceUsing: (log: Log) => (...ms: Array<{}>) => <A>(x: A) => A
where
type Log = (...xs: Array<{}>) => void
references
the base package / Debug.Trace
license
MIT
0.1.0
7 years ago