@isaac-m/console
v1.0.0
Published
Returns data passed into console logging functions
Downloads
3
Readme
@isaac-m/console
Returns the argument passed into a logging function. For logging arguments a tiny bit more easily.
// With native console
const arg = 'arg';
console.log(arg);
exampleFunction(arg);
// With log
exampleFunction(log('arg'));
Installation
npm i @isaac-m/console
Usage
import { log } from "@isaac-m/console";
const str = log("This is a string.");
Functions
- debug
- error
- info
- log
- warn