fauxet
v1.0.0
Published
Inspired by Debug.log in Elm
Downloads
11
Readme
npm install --save fauxetimport { tap } from 'fauxet';
myPromise().then(i => doSomething('foo', tap(i)));
// Logs i to console without having to expand the return statement
// and adding a console.logimport { tap } from 'fauxet';
const myString = 'bar';
tap(myString, 'foo:') // "foo: bar" in the console