🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

mambas

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mambas

Analysis for mBaaS

0.1.4
latest
npm
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

Analysis

Usage

npm install @leapit/analysis

Config your analysis like this

Example

var opts = {
    persistence: {
        url: 'mongodb://localhost:27017/analysis',
        mongo: {},
        reports: 'reports',
        logs:'logs'
    },
    ipdata : {
        city: './ipdata/GeoLite2-City.mmdb'
    }
};

Set your analysis middleware,Take express for example


var analysis = require('@leapit/analysis');
app.use(analysis(opts));

Usage(in routes),Take express for example

/* GET home page. */
router.get('/', function(req, res, next) {

  req.record('index',{"custorm":"here"});
  
  res.render('index', { title: 'Express' });
});

Keywords

analysis

FAQs

Package last updated on 02 Sep 2020

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