New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cloud-obs/express

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

@cloud-obs/express

Cloud-obs SDK for express servers

latest
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

Cloud-Obs SDK for ExpressJS

GitHub license npm version

Getting Started

First, you need to visit cloud-obs.com, add your company to the system and create a new project where all dashboards and analytics will be displayed. After that you can create a new Access Token that will be used by the SDK to establish TCP connection with Cloud-Obs SDK API back-end.

Second, you need to install the SDK into your project.

yarn add @cloud-obs/express

npm i --save @cloud-obs/express

Now, in your ExpressJS server file you just need to import the cloudObs middleware factory.

const { cloudObs } = require('@cloud-obs/express');

This function will return an ExpressJS middlware. Please pass the Access Token as a parameter for this function. Here is an example:

const app = express()
...
app.use(cloudObs('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'));

Examples

Please feel free to navigate to the examples directory for express.

FAQs

Package last updated on 02 Apr 2023

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