# @kevinorriss/calculator

> A simple calculator component with the basic operations

Latest version **1.0.2** (published 2021-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install @kevinorriss/calculator
pnpm add @kevinorriss/calculator
yarn add @kevinorriss/calculator
bun add @kevinorriss/calculator
```

## 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.2 |
| Published | 2021-08-25 |
| First published | 2019-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 61.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kevin Orriss |
| Maintainers | kevinorriss |

## Links

- npm: https://www.npmjs.com/package/@kevinorriss/calculator
- Repository: https://github.com/kevinorriss/reactjs-component-calculator
- Homepage: https://github.com/kevinorriss/reactjs-component-calculator#readme
- Issues: https://github.com/kevinorriss/reactjs-component-calculator/issues
- npm.io page: https://npm.io/package/@kevinorriss/calculator

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.14.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Recent versions

- 1.0.2 (latest) — 2021-08-25
- 1.0.1 — 2021-04-30
- 1.0.0 — 2019-10-13

## README

# Calculator

A simple calculator component with the basic operations

## Prerequisites

* [React ^16.9.0](https://reactjs.org/) - Javascript library for user interfaces

## Installing

```
npm install @kevinorriss/calculator
```

## Usage

Import the component

```
import Calculator from '@kevinorriss/calculator'

...

<!-- JSX -->
<div className="your-container">
    <Calculator />
</div>
```

## Development

This repo comes with a react app for development purposes. To get started, open a terminal in the root of the project and then:

### Link the component to the app
```
cd ./component
npm link

cd ..
npm link @kevinorriss/calculator
```

### Start the app
```
npm start
```

### Start the rollup watcher
```
cd ./component
npm run dev
```

Whenever you make a change to the component code, the react app will update.

## Tests
```
npm test
```

This project uses Jest and Enzyme for its unit tests, simply run the above code to run the test suites.

## Author

* **Kevin Orriss** - [orriss.io](http://orriss.io)

## License

This project is licensed under the ISC License

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