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

@aspecto/core

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aspecto/core

Aspecto metric collector

1.1.22
latest
100

Supply Chain Security

100

Vulnerability

85

Quality

85

Maintenance

100

License

Version published
Maintainers
3
Created

Aspecto

Your API is critical for your success and we wat to help you protect it:

How it works

  • Install this package - it will report to our servers
  • Install our VSCode extension

This package and the extension will comminucate and if you are about to make a breaking change we will notify you with VSCode

For more details check out our website

Start using

Install

npm install @aspecto/core

Usage

const aspecto = require('@aspecto/core').init();
  • In the root folder create a aspecto.json file with {"token" : "-- token goes here --"}
  • You can get your token from here

Usage in CLI

@aspecto/core uses websockets to send the data it collects.
An open websocket connection will keep the node.js process running which may not be desired in CLI apps.
In order to close the WS connection that @aspecto/core opens, call a callback that is being returned by init function, like so:

const aspecto = require('@aspecto/core').init();

// your app's code

aspecto.close();

FAQs

Package last updated on 26 Mar 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