# focal-length

> Focal length calculator for various crop factors.

Latest version **1.0.2** (published 2017-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install focal-length
pnpm add focal-length
yarn add focal-length
bun add focal-length
```

## 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 | 2017-06-21 |
| First published | 2017-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Delia Stephens |
| Maintainers | dstephens |
| Keywords | focal, length, camera |

## Links

- npm: https://www.npmjs.com/package/focal-length
- Repository: https://github.com/deliastephens/focal-length
- Homepage: https://github.com/deliastephens/focal-length#readme
- Issues: https://github.com/deliastephens/focal-length/issues
- npm.io page: https://npm.io/package/focal-length

## Dependencies (1)

- [jest](https://npm.io/package/jest.md) ^20.0.4

## Recent versions

- 1.0.2 (latest) — 2017-06-21
- 1.0.1 — 2017-06-21
- 1.0.0 — 2017-06-21
- 0.3.1 — 2017-06-21
- 0.3.0 — 2017-06-21
- 0.2.0 — 2017-06-21
- 0.1.0 — 2017-06-20

## README

# Focal Length

A simple NPM module for calculating the effective focal length given crop factor of camera and focal length of a lens.

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Prerequisites

This project uses [jest](https://facebook.github.io/jest/)
for testing:

```
npm i --save jest
```

### Installing
```
npm i --save focal-length
```

## Running the tests

This system uses [Jest](https://facebook.github.io/jest/) for testing.

### Installing Jest
To install Jest, run
```
npm install jest
```
We only have one test, which verifies that calcNewFocalLength is returning the correct value and type of value. To run this test, type:

### Implementing Tests

```
npm test
```

## Deployment

To calculate the effective focal length for a crop factor and focal length:

```
const focalLength = require('focal-length');
const cropFactor = YOUR_CROP_FACTOR;
const focalLength = YOUR_FOCAL_LENGTH;

focalLength.calcNewFocalLength(cropFactor, focalLength);
```

## Authors

* **Delia Stephens** - *Initial work* -

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

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