# cebrify

> Makes some calculations easy

Latest version **1.0.6** (published 2023-01-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install cebrify
pnpm add cebrify
yarn add cebrify
bun add cebrify
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2023-01-02 |
| First published | 2022-11-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 42.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | bekircbc |
| Maintainers | bekircbc |
| Keywords | calculation, rechnen, cebrify |

## Links

- npm: https://www.npmjs.com/package/cebrify
- Repository: https://github.com/bekircbc/cebrify
- Homepage: https://github.com/bekircbc/cebrify#readme
- Issues: https://github.com/bekircbc/cebrify/issues
- npm.io page: https://npm.io/package/cebrify

## Recent versions

- 1.0.6 (latest) — 2023-01-02
- 1.0.5 — 2023-01-02
- 1.0.4 — 2022-11-25
- 1.0.3 — 2022-11-25
- 1.0.2 — 2022-11-25
- 1.0.1 — 2022-11-25
- 1.0.0 — 2022-11-25

## README

# About Cebrify

![logo](Cebrify.png)

- Cebrify is a small npm package for calculating some features.

- Install cebrify with the following command

        npm install cebrify

- Create a index.js file and add the following code for using cebrify.

        import pkg from "cebrify";

        const { calcBMI, togglerStatus,togglerBoolean, averageRatingCalc, exchangeRate, dateFormatter, startLogOutTimer } = pkg;

- Cebrify has this functions available.

        pkg.calcBMI
        pkg.togglerStatus
        pkg.togglerBoolean
        pkg.averageRatingCalc
        pkg.exchangeRate
        pkg.dateFormatter
        pkg.startLogOutTimer

## calcBMI

- Write the following code for using calcBMI function.

- Calculate the BMI of a human with 77 kg weight and 1.78 m height.

        pkg.calcBMI(77, 1.78)

## toggler

- Write the following code for using toggler function .

        pkg.togglerStatus(development, deployment, development)

- togglerBoolean

        pkg.togglerBoolean(isVisible)

## averageRatingCalc

- Data structure of object has to be as follows :

        const data = {
          products: [
          {
              name: "iPhone 9",
              category: "smartphones",
              price: 549,
              stock: 94,
              reviews: [
                 {
                name: "lover64",
                rating: 1,
                comment:"Esse",
              },
              ],
            averageRating: 0,
            description: "An apple mobile",
            discountPercentage: 12.96,
            },

- Write the following code for using averageRatingCalc function .

          pkg.averageRatingCalc(data.products)

## exchangeRate

- Write the following code for using this function .

        pkg.averageRatingCalc(100, 1.14, "USD", "EUR")

        // Exchange 100 USD to EUR with exchange rate : 1.14

# About npm Packages

- create your own package

- npm publish

- sign up to npm

- npm login ---

- after login, npm publish

## scoped and unscoped modules

- npm init --scope=@scope-name (scopped)

- npm init (unscopped)

## updating

-- npm version patch

-- npm publish

## for more information

- (Contributing packages to the registry)[https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry]

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