New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pino-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-mongodb

Insert JSON from stdin into MongoDB

  • 1.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
decreased by-21.58%
Maintainers
1
Weekly downloads
 
Created
Source

pino-mongodb

Standard - JavaScript Style Guide

Insert JSON from stdin into MongoDB

This project is part of the pino logger family, however you can use it to parse and insert any JSON into the mongo.

Install

npm i -g pino-mongodb

Get started

echo '{"name": "Viktor"}' | pino-mongodb [options]
cat many.logs | pino-mongodb [options]
node ./app.js | pino-mongodb [options]

Usage

  Usage: pino-mongodb [options]

  Insert JSON from stdin into MongoDB


  Options:

    -V, --version              output the version number
    -U, --url <url>            complete database url
    -H, --host <address>       database host (localhost)
    -P, --port <number>        database port (27017)
    -d, --db <name>            database name (logs)
    -c, --collection <name>    database collection (logs)
    -u, --username <username>  username for authentication
    -p, --password <password>  password for authentication
    -o, --stdout               output inserted documents into stdout (false)
    -e, --errors               output insertion errors into stderr (false)
    -h, --help                 output usage information

Tests

npm test

License

Licensed under MIT.

Keywords

FAQs

Package last updated on 05 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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