https://github.com/ericadamski/echolog
A tiny wrapper around console.log that returns the values passed to it
https://github.com/ericadamski/echolog
Last synced: 3 months ago
JSON representation
A tiny wrapper around console.log that returns the values passed to it
- Host: GitHub
- URL: https://github.com/ericadamski/echolog
- Owner: ericadamski
- License: mit
- Created: 2019-04-30T15:29:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T15:36:16.000Z (about 6 years ago)
- Last Synced: 2025-02-06T10:53:59.642Z (4 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# echolog
A tiny wrapper around console.log that returns the values passed to it
## Installation
```
> yarn add echolog
```## Usage
```JavaScript
const log = require('echolog');log(Math.abs(-10));
// Outputs: "10" on the terminal
// returns 10log("hello", "👏");
// Outputs: "hello 👏" on the terminal
// returns ["hello", "👏"]
```