0.1.1 • Published 6 years ago

logical-gates v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Logic Gates

Implementation for logic gates in js

Installation

  yarn add logical-gates

Usage

  import { AND, OR, NAND, NOT, NOR } from 'logical-gates';

Left bitwise operator

  import { LAND, LOR, LXOR } from 'logical-gates';

Example :

const result = LAND(5, 3);

Explanation :

 5 = 101
 3 =11
 // Left wise
 3 = 110

Result

  4