
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@nerdvision/agent
Advanced tools
This is the official nerd.vision node agent. We're constantly looking to improve, so please send us feedback on it's usability and if you find any issues! You can see the known issues at the bottom of this readme.
You can find the documentation at docs.nerd.vision
npm i @nerdvision/agent
All configuration properties are defined in NerdVisionConfig
interface NerdVisionConfig {
api_key: string;
name?: string; // default: my-node-app
debug?: boolean; // default: false
tags?: { [key: string]: string }; // default: {}
}
apiKey
has been renamed to api_key
Both init
and wrap
accept an API key, or the configuration object. The example below is typescript, but nerd.vision works perfectly with normal javascript as well.
const {nerdvision, NerdVisionConfig} = require('@nerdvision/agent');
const config: NerdVisionConfig = {
api_key: 'API_KEY', // you can find yours at https://account.nerd.vision/account/apikeys
};
//
// THEN
//
nerdvision.init('API_KEY').then(() => {
// application code
});
//
// OR
//
nerdvision.init(config).then(() => {
// application code
});
When Node exits, nerd.vision should automatically disconnect. If you want to ensure that it has disconnected, you can explicitly call close
in your shutdown handler:
nerdvision.close();
You can also use .wrap
to automatically disconnect after your code has run. This is more useful for applications that shut down after processing.
nerdvision.wrap(config, async () => {
// application code
// this function must return a promise
// when it resolves, nerd.vision will disconnect automatically
});
There are two example node applications for nerd.vision.
I get the error
TS7016: Could not find a declaration file for module 'google-protobuf'
npm i -D @types/google-protobuf
I get errors when i use
import
on nerd.vision
require
syntax above for now, we're actively looking into fixing thistsc
and run it directly with node for tracepoints to fireFAQs
The official node agent for NerdVision
The npm package @nerdvision/agent receives a total of 4 weekly downloads. As such, @nerdvision/agent popularity was classified as not popular.
We found that @nerdvision/agent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.