1.2.0 • Published 6 years ago

tap-logger v1.2.0

Weekly downloads
7
License
ISC
Repository
-
Last release
6 years ago

tap-logger

Installation

npm i tap-logger

Test and Dev

npm run test & npm run watch

Usage

const tap = require('./index')
tap('algo')//logs and returns "algo" 
tap('hola', 'mundo')//logs "'hola' , 'mundo'" and returns "mundo" 
tap.c(5)('algo')//logs '5, "algo"' and returns "algo" 
tap.ap(s => s.split(), 'algo')//logs ['a','l','g','o']' and returns "algo" 
tap.hola()//logs "hola"
tap.start()//logs "\n.\n..\n...\n....\n.....\n......\n.......\n........\nStarting:....\n"
tap.end()//logs "\nEnding:....\n........\n.......\n......\n.....\n....\n...\n..\n.\n"