logic-expression-simplify
v0.0.2
Published
Simplify logic expression.
Downloads
56
Readme
logic-expression-simplify
Simplify logic expression.
Demo
Repo: https://github.com/shamcode/simplifier
App: http://simplifier.shamcode.ru
Install
npm install logic-expression-simplify
Usage
import simplify from 'logic-expression-simplify';
const result = simplify( '(a && b) || (!a && !b)' );
// result === 'a == b';
const result = simplify( 'a || (!a && !b)' );
// result === 'a || !b';