Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Latest commit

 

History

History

depscloud-api-nodejs

Getting Started with NodeJS

To install:

npm install --save @depscloud/api

Usage:

const grpc = require('@grpc/grpc-js');

const { DependencyExtractor } = require('@depscloud/api/v1alpha/extractor');
const {
    SourceService,
    ModuleService,
    DependencyService,
} = require('@depscloud/api/v1alpha/tracker');

const target = "api.deps.cloud:443";
const creds = grpc.credentials.createSsl();

const sourceService = new SourceService(target, creds);
const moduleService = new ModuleService(target, creds);
const dependencyService = new DependencyService(target, creds);

Google Analytics