# 1log

> Log function with superpowers

Latest version **3.0.2** (published 2021-07-01) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install 1log
pnpm add 1log
yarn add 1log
bun add 1log
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2021-07-01 |
| First published | 2021-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 1 |
| Unpacked size | 349.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 64 |
| Maintainers | ivan7237d |
| Keywords | log, logger, logging, test, testing, jest, snapshot, function, promise, iterable, async |

## Links

- npm: https://www.npmjs.com/package/1log
- Repository: https://github.com/ivan7237d/1log
- Homepage: https://github.com/ivan7237d/1log#readme
- Issues: https://github.com/ivan7237d/1log/issues
- npm.io page: https://npm.io/package/1log

## Dependencies (1)

- [antiutils](https://npm.io/package/antiutils.md) ^3.1.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 3.0.2 (latest) — 2021-07-01
- 3.0.0 — 2021-03-05
- 2.1.4 — 2021-02-11
- 2.1.3 — 2021-02-08
- 2.1.2 — 2021-02-08
- 2.1.1 — 2021-02-06
- 2.1.0 — 2021-01-23
- 2.0.0 — 2021-01-22
- 1.2.0 — 2021-01-16
- 1.1.0 — 2021-01-14
- 1.0.2 — 2021-01-13
- 1.0.1 — 2021-01-12
- 1.0.0 — 2021-01-12

## README

<!-- README for NPM; the one for GitHub is in .github directory. -->

[![gzip size](https://badgen.net/bundlephobia/minzip/1log?color=green)](https://bundlephobia.com/result?p=1log)
[![tree shaking](https://badgen.net/bundlephobia/tree-shaking/1log)](https://bundlephobia.com/result?p=1log)
[![types](https://img.shields.io/npm/types/1log?color=brightgreen)](https://www.npmjs.com/package/1log)
[![coverage status](https://coveralls.io/repos/github/ivan7237d/1log/badge.svg?branch=master)](https://coveralls.io/github/ivan7237d/1log?branch=master)

This library provides a function `log` that can be used as the regular `console.log`, but has two superpowers: you can insert it into any expression, as in `f(log(x))`, and it supports plugins. There are plugins for setting severity level, for logging functions, async functions, promises, iterables, async iterables, observables, for creating snapshots of log messages in Jest tests, and more.

Please refer to the [GitHub README](https://github.com/ivan7237d/1log#readme) for full documentation and screenshots.

---
_Source: https://npm.io/package/1log · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
