# lowtide

> NodeJS file logger

Latest version **0.1.6** (published 2022-11-06) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2022-11-06 |
| First published | 2021-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Vidar Eldøy |
| Maintainers | eldoy |

## Links

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

## Recent versions

- 0.1.6 (latest) — 2022-11-06
- 0.1.5 — 2021-10-21
- 0.1.4 — 2021-04-02
- 0.1.3 — 2021-03-30
- 0.1.2 — 2021-03-30
- 0.1.1 — 2021-03-30
- 0.1.0 — 2021-02-21

## README

# Lowtide

NodeJS file logger.

Features:

* Extremely minimal and fast, no dependencies
* Logs to file asynchronously
* Supports formatted logging of arrays, objects and dates
* Can be used to log to file with `console.log` and `console.error` in production

### Install
```js
npm i lowtide
```

### Usage
```js
// Require
const lowtide = require('lowtide')

// Init logger on this file
const log = lowtide('file.log')

// Log string
log('Something happened!')

// Log object
log({ name: 'something' })

// Log console log and error to file
if (process.env.NODE_ENV == 'production') {
  console.log = lowtide('log/app.log')
  console.error = lowtide('log/err.log')
}
```

MIT Licensed. Enjoy!

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