Have all the Logic within your JavaScript projects. LogicalJS provides you the Logical Gates you are used to in electronics.
npm install logicaljsA library that performs logic gate operations. Ever had the need to perform
an XOR operation? Ever needed to perform huge amounts of && to check an AND operation? Then this library is for
you! It features all the logic gates and then some!
bower install logicaljsNpm: npm install logicaljs
logical, which has the following well-known methods:It also has a strictXor method. It is a strict check to see if the collection only has 1 truthful element, instead of the tradtional electronics convention of odd/parity.
For usage instructions, please refer to the docs.
npm install and then grunt test. You're all set!Copyright - MIT