Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@valueflows/track-trace

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@valueflows/track-trace

tracking and tracking algorithms working on ValueFlows datasets

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@valueflows/track-trace

Implementation of track & trace algoritms in TypeScript.

Usage

yarn add @valueflows/track-trace
import { track, trace } from '@valueflows/track-trace'
import data from './store'

const entityInData = 'https://some.example/fbb63f10-ae72-4471-b1d2-a1931208932e'

;(async () => {
  for await (const node of track(data, entityInData)) console.log(node)
  for await (const node of trace(data, entityInData)) console.log(node)
})

ResultNode

Iterator iterates over results nodes described by this interface:

interface ResultNode {
  type :NamedNode,
  iri :string,
  distance :number
}

FAQs

Package last updated on 20 Jan 2019

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