An open API service indexing awesome lists of open source software.

https://github.com/apex/up.js

Up application companion library for Node and the browser
https://github.com/apex/up.js

Last synced: 5 months ago
JSON representation

Up application companion library for Node and the browser

Awesome Lists containing this project

README

        

[Up](https://github.com/apex/up) application companion library for Node and the browser, providing out of the box solutions for authentication, logging, messaging and more.

## Installation

```
$ npm install up
```

## Logging

Up supports [structured logging](https://up.docs.apex.sh/#guides.mastering_logging.json) in the form of JSON written to stdout, the rest is handled by Up. To make this process a bit cleaner, up.js provides a `Logger` as shown here:

```js
const { Logger } = require('up')
const log = new Logger()

log.error('user login attempt failed', { user: 'tobi' })
log.info('user login', { user: 'tobi' })
log.info('user logout', { user: 'tobi' })
```

The following severity levels are available:

- `debug`
- `info`
- `warn`
- `error`
- `fatal`

---

[![Build Status](https://semaphoreci.com/api/v1/tj/up-js/branches/master/badge.svg)](https://semaphoreci.com/tj/up-js)
![](https://img.shields.io/badge/license-MIT-blue.svg)
![](https://img.shields.io/badge/status-stable-green.svg)