0.5.1 • Published 6 years ago
@mamamiracolie/temperature-visualizer v0.5.1
Home Automation
A library for visualizing temperature in a LCD form in the terminal.
A package that receives a temperature and couple of settings for border and size.
And prints the temperature in the terminal with given settings.Installation
npm install @mamamiracolie/temperature-visualizerUsage example
Use convertToBinary() to setup the output of the temperature:
import Settings from '@mamamiracolie/temperature-visualizer/src/settings'
const settings = new Settings()
let number = -98.45;
let border = false;
let doubleSize = false;
settings.convertToBinary(number + " °C", border, doubleSize)Supported characters:
0 1 2 3 4 5 6 7 8 9 - . ° C and spaceDevelopment setup
npm installDocumentation
Meta
Username: mamamiracolie
Email: benjamin.dhondt@student.vives.be
School: VIVES Brugge
License: MIT