trace-t
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i trace-t

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • airt