New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

candidate-keys

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

candidate-keys

Finds the candidate keys from a list of functionnal dependencies.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

find-candidate-keys

Finds the candidate keys from a list of functionnal dependencies

Usage

// R = (E, G, K, L)
var rel = ["E","G","K","L"];
// F = (E ⭢ G, EK ⭢ L)
var fundeps = [
  [["E"], "G"], // E ⭢ G
  [["E", "K"], "L"] // EK ⭢ L
];

candidate_keys(rel, fundeps);
/* Returns the list of all candidate keys (in this case, there is only EK)
[
  ["E", "K"]
]
*/

npm module

Install

npm install candidate-keys

Usage

var find_candidate_keys = require("candidate-keys").candidate_keys;

Keywords

FAQs

Package last updated on 17 Jan 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc