Socket
Book a DemoInstallSign in
Socket

@squzy/express

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squzy/express

Basic wrapper for Squzy Monitoring Express

1.10.0
latest
Source
npmnpm
Version published
Weekly downloads
31
3000%
Maintainers
1
Weekly downloads
 
Created
Source

@squzy/express

Package for usage that inside express application

How to use

npm install @squzy/express --save

It is should be on route level, because on root level it is impossible to get access to matched router without patching(we dont wanna do that)

import { createMiddleware } from "@squzy/express"
import { createApplication } from "@squzy/core"

const application = await createApplication({
    apiHost: "http://localhost:8080",
    name: "nodejs"
})

const router = express.Router();

router.get('/adamin/:name', createMiddleware(application), function (req, res) {
    //console.log(req.route)
    res.send('hello world')
})

FAQs

Package last updated on 19 Jul 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.