This displays the draws the Binary Clock on a Canvas or Terminal
node
: this directory contains the example usage of this library in node js environmentweb
: this directory contains the example usage of this library in browser environmentbinary-clock.js
: source code of the library.package.json
: package infobinary-clock-js
through npm
.
```
npm i binary-clock-js -scanvas
tag to your html as below
```
Add the binary-clock.js
script to your html as below
```
binary-clock-js
through npm
.
```
npm i binary-clock-js -sBinaryClock
to your application.
```
let { BinaryClock } = require(‘binary-clock’);Use the below function same as in Web
(Second parameter should be null
as it is used for canvas
object in the web
implementation)
```
// Usage with Default Options
new BinaryClock();
// Usage with autoUpdate false new BinaryClock(new Date(), null, {autoUpdate: false});