# mri-ngx-battery-status

> This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.0.

Latest version **0.0.4** (published 2019-10-19) · 0 weekly downloads

## Install

```sh
npm install mri-ngx-battery-status
pnpm add mri-ngx-battery-status
yarn add mri-ngx-battery-status
bun add mri-ngx-battery-status
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2019-10-19 |
| First published | 2019-10-18 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 106.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rezaimn |

## Links

- npm: https://www.npmjs.com/package/mri-ngx-battery-status
- npm.io page: https://npm.io/package/mri-ngx-battery-status

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Recent versions

- 0.0.4 (latest) — 2019-10-19
- 0.0.3 — 2019-10-18
- 0.0.2 — 2019-10-18
- 0.0.1 — 2019-10-18

## README

# MriNgxBatteryStatus

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.0.

This library src is available on [GitHub](https://github.com/rezaimn/mri-ngx-battery-status).

## Installing

     npm i mri-ngx-battery-status --save

## Quickstart
Import mri-ngx-battery-status module in Angular app.

```sh 
     import {MriNgxBatteryStatusModule} from 'mri-ngx-battery-status';

     @NgModule({
       (...)
       imports: [
         MriNgxBatteryStatusModule
       ]
       (...)
     })
```

##Usage

```sh
     <mri-ngx-battery-status
             [height]="20"
             [width]="50"
             [batteryLevel]="79"
             [highThreshold]="66"
             [lowThreshold]="33"
             [batteryBorderColor]="'#000000'"
             [borderRadius]="4"
             [borderThickness]="2"
             [fontSize]="10"
             [textColor]="'#000000'">
     </mri-ngx-battery-status>
```

##Guide

| input | type | description |
| ------ | ------ | ------ |
| height | number | it sets the component height
| width | number | it sets the component width
| batteryLevel | number | it sets the battery level and it must be between 0 and 100
| highThreshold | number | it sets the percentage that we consider the battery level is high
| lowThreshold | number | it sets the percentage that we consider the battery level is low
| batteryBorderColor | string | it sets the battery border color
| borderRadius | number | it sets the border radius
| borderThickness | number | it sets the battery border thickness
| fontSize | number | it sets the battery level text font size
| textColor | string | it sets battery level text color

Run `ng generate component component-name --project mri-ngx-battery-status` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project mri-ngx-battery-status`.
> Note: Don't forget to add `--project mri-ngx-battery-status` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build mri-ngx-battery-status` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build mri-ngx-battery-status`, go to the dist folder `cd dist/mri-ngx-battery-status` and run `npm publish`.

## Running unit tests

Run `ng test mri-ngx-battery-status` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

---
_Source: https://npm.io/package/mri-ngx-battery-status · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
