@sx9dev/dls.js

1.0.1 • Public • Published

Digital Logic Simulator

A Collection Of Functions That Act Like Logic Gates.

Usage

const { gates, extra } = require('@sx9dev/dls.js');

// Inputs And Outputs
let in1 = 0;
let in2 = 1;

// Logic Gates
let out1 = gates.and(in1, in2); 
let out2 = gates.not(in1); 

// Conversion Functions
let number = extra.binToNum('1010'); // 10
let binary = extra.numToBin(10); // 1010

console.log(out1, out2); // 0 1

Readme

Keywords

Package Sidebar

Install

npm i @sx9dev/dls.js

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.37 kB

Total Files

3

Last publish

Collaborators

  • sx9dev