# unlog

Latest version **0.0.3** (published 2017-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install unlog
pnpm add unlog
yarn add unlog
bun add unlog
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-11-12 |
| First published | 2017-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | torpedro |

## Links

- npm: https://www.npmjs.com/package/unlog
- Repository: https://github.com/torpedro/unlog
- Homepage: https://github.com/torpedro/unlog#readme
- Issues: https://github.com/torpedro/unlog/issues
- npm.io page: https://npm.io/package/unlog

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^2.5.3

## Recent versions

- 0.0.3 (latest) — 2017-11-12
- 0.0.2 — 2017-10-29
- 0.0.1 — 2017-10-29

## README

# unlog - Unified Logging


Supported Languages:
 * [Bash](#bash) (also tested: zsh, sh)
 * [JavaScript](#javascript)
 * [TypeScript](#typescript)
 * [Makefile](#makefile)

Planned Languages:
 * C / C++
 * Python

### Bash

Also compatible with: zsh, sh.
Other shells might also work but are untested.

```bash
source src/unlog.sh

log "This is a simple log message."
warn "This is a warning!"
error "This is an error!"

# Also works for pipes
cat log_messages | log
cat warnings | warn
cat errors | error
```

### JavaScript

```javascript
var unlog = require("src/unlog");

unlog.log("This is a simple log message.");
unlog.warn("This is a warning!");
unlog.error("This is an error!");
```

### TypeScript

```typescript
import * as unlog from 'src/unlog';

unlog.log("This is a simple log message.");
unlog.warn("This is a warning!");
unlog.error("This is an error!");
```

### Makefile

```makefile
include src/unlog.mk

all:
    $(LOG) "This is a simple log message."
    $(WARN) "This is a warning!"
    $(ERROR) "This is an error!"
```

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