Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kluski

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kluski - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

28

index.js

@@ -0,1 +1,3 @@

#!/usr/bin/env node
const chalk = require('chalk')

@@ -5,8 +7,2 @@ const np2 = require('next-pow-2')

const METHOD = '!a!b + !abc + a!bde + cde + !bcd + !bce + !a!ce + !abd!e'
const TRUTHS = [
0, 1, 2, 3, 4, 5, 6, 7,
9, 10, 11, 12, 13, 14, 15,
19, 21, 22, 23, 31
]
const POWERS = {

@@ -39,2 +35,12 @@ 1: 0,

const expandImplicant = (implicant) => {
const idx = implicant.indexOf('-')
if (!~idx) return [ implicant ]
return [
...expandImplicant(replaceAt(implicant, idx, '0')),
...expandImplicant(replaceAt(implicant, idx, '1'))
]
}
const parseMethod = (method) => {

@@ -324,12 +330,2 @@ const words = method.split('+')

// Select essential ones
const expandImplicant = (implicant) => {
const idx = implicant.indexOf('-')
if (!~idx) return [ implicant ]
return [
...expandImplicant(replaceAt(implicant, idx, '0')),
...expandImplicant(replaceAt(implicant, idx, '1'))
]
}
const map = {}

@@ -336,0 +332,0 @@ for (const implicant of primeImplicants) {

{
"name": "kluski",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",

@@ -14,3 +14,6 @@ "license": "MIT",

"repository": "https://github.com/pb-students/kluski",
"description": "Quine-McCluskey tools"
"description": "Quine-McCluskey tools",
"bin": {
"kluski": "index.js"
}
}
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