Socket
Socket
Sign inDemoInstall

deppy

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    deppy

A simple dependency graph resolver.


Version published
Maintainers
1
Install size
6.39 kB
Created

Readme

Source

Deppy - A simple dependency graph resolver.

Deppy is a JavaScript library for resolving dependency graphs. It handles cycles and multiple independent nodes. Nodes can be defined in any order.

Serial resolution of dependencies

Deppy will walk the graph and build an array of nodes. The first element in the array has no dependencies while subsequent elements depend on zero or more previous elements. Here is an example of using deppy to build and resolve a graph:

var d = require('deppy').create();
d('a');
d('c', ['b']);
d('b', ['a']);
console.log(d.resolve('c')); // [ 'a', 'b', 'c' ]

Keywords

FAQs

Last updated on 22 Jul 2012

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc