Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mof-genestamp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mof-genestamp

middleware of floodesh, prints gene and url of a task, along with # of new tasks and # of records

  • 3.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by333.33%
Maintainers
1
Weekly downloads
 
Created
Source

mof-genestamp

middleware of floodesh, prints gene and url of a task, along with # of new tasks and # of records

Install

npm install mof-genestamp

Test

npm test

Usage

In floodesh, use it after parser:

const Worker = require('floodesh').Worker
const genestamp = require('mof-genestamp')
const worker = new Worker(config);

worker.use(co.wrap(worker.parse()));
// refer to the section below
worker.use(genestamp(options));

options

  • options <Object> Could be undefined. Use 0 to exclude fields. Alternatively, you may specify the inclusion of fields use 1.

log format

`[${ctx.func}] uri=${ctx.opt.uri}, gene.key1=${val1}, gene.key2=[key21=${val21}, key22=${val22}], tasks=${ctx.tasks.length}, dataSet.key1=${len1}, dataSet.key2=${len2}`

Pay attention

  1. no dependency is required for this module, but your the logger instance should be generated by winston@>2.0.0 and your file rotate transport should be generated by winston-daily-rotate-file@>3.2.3

  2. make sure ctx.opt.gene does not have a circular reference

Keywords

FAQs

Package last updated on 25 Oct 2019

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