# is-currency

> Validates whether a given input is a valid currency code, according to ISO 4217

Latest version **2.0.0** (published 2017-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-currency
pnpm add is-currency
yarn add is-currency
bun add is-currency
```

## 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 | 2.0.0 |
| Published | 2017-07-01 |
| First published | 2017-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Hugo Muller-Downing |
| Maintainers | hugomd |
| Keywords | currency, code, currencies, codes |

## Links

- npm: https://www.npmjs.com/package/is-currency
- Repository: https://github.com/hugomd/is-currency
- Homepage: https://github.com/hugomd/is-currency#readme
- Issues: https://github.com/hugomd/is-currency/issues
- npm.io page: https://npm.io/package/is-currency

## Dependencies (2)

- [is-currency-code](https://npm.io/package/is-currency-code.md) ^1.1.0
- [is-currency-symbol](https://npm.io/package/is-currency-symbol.md) ^1.3.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-07-01
- 1.3.0 — 2017-06-06
- 1.2.0 — 2017-06-05
- 1.1.0 — 2017-06-02
- 1.0.0 — 2017-06-02

## README

# 💰 is-currency
[![npm](https://img.shields.io/npm/v/is-currency.svg?maxAge=2592000)](https://www.npmjs.com/package/is-currency) [![Build Status](https://travis-ci.org/hugomd/is-currency.svg?branch=master)](https://travis-ci.org/hugomd/is-currency/builds) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) 

> Validates whether a given input is a valid currency code, according to ISO 4217.

# Installation
```javascript
npm install is-currency
```

# Usage
```javascript
const isCurrency = require('is-currency');

isCurrency('usd'); // true
isCurrency('fake-currency'); // false
```

# Contributing
* `git clone git@github.com:hugomd/is-currency.git`
* `npm install`
* Make your changes
* Open a pull request and ask for review ✌️
* Optional: use emoji in your commits 🔥

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