0.1.0 • Published 7 years ago

trace-t v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

trace-t

Build Status Test Coverage NPM Version

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