Socket
Socket
Sign inDemoInstall

pino

Package Overview
Dependencies
Maintainers
1
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

11

example.js
'use strict'
var sermon = require('./')()
var pino = require('./')()
var info = pino.info
sermon.info('hello world')
sermon.info('the answer is %d', 42)
sermon.info({ obj: 42 }, 'hello world')
setImmediate(sermon.info, 'wrapped')
info('hello world')
info('the answer is %d', 42)
info({ obj: 42 }, 'hello world')
setImmediate(info, 'after setImmediate')
{
"name": "pino",
"version": "0.0.1",
"version": "0.1.0",
"description": "your logger, inspired by bunyan",

@@ -5,0 +5,0 @@ "main": "pino.js",

@@ -1,3 +0,56 @@

# sermon
# pino
node.js logger, inspired by Bunyan
[Extremely fast](#benchmarks) node.js logger, inspired by Bunyan.
Still _alpha code_, and in active development.
## Install
```
npm install pino --save
```
## Usage
```js
'use strict'
var pino = require('pino')(
// or any other stream
// defaults to stdout
process.stdout
)
var info = pino.info
info('hello world')
info('the answer is %d', 42)
info({ obj: 42 }, 'hello world')
setImmediate(info, 'wrapped')
```
## Benchmarks
As far as I know, it is the fastest logger in town:
```
benchBunyan*10000: 1128ms
benchWinston*10000: 1903ms
benchBole*10000: 1511ms
benchPino*10000: 439ms
benchBunyanObj*10000: 1209ms
benchWinstonObj*10000: 1948ms
benchPinoObj*10000: 526ms
benchBoleObj*10000: 1466ms
benchBunyan*10000: 1064ms
benchWinston*10000: 1827ms
benchBole*10000: 1524ms
benchPino*10000: 438ms
benchBunyanObj*10000: 1220ms
benchWinstonObj*10000: 2119ms
benchPinoObj*10000: 524ms
benchBoleObj*10000: 1522ms
```
## License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc