# is-valid-acn

> Check if a number is a valid Australian Company Number (ACN)

Latest version **2.0.0** (published 2025-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-valid-acn
pnpm add is-valid-acn
yarn add is-valid-acn
bun add is-valid-acn
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2025-03-20 |
| First published | 2019-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Wojciech Maj |
| Maintainers | wojtekmaj |
| Keywords | validation, acn |

## Links

- npm: https://www.npmjs.com/package/is-valid-acn
- Repository: https://github.com/wojtekmaj/is-valid-acn
- Homepage: https://github.com/wojtekmaj/is-valid-acn#readme
- Issues: https://github.com/wojtekmaj/is-valid-acn/issues
- Funding: https://github.com/wojtekmaj/is-valid-acn?sponsor=1
- npm.io page: https://npm.io/package/is-valid-acn

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2025-03-20
- 1.3.4 — 2023-10-18
- 1.3.3 — 2023-03-10
- 1.3.2 — 2023-02-02
- 1.3.1 — 2023-01-12
- 1.3.0 — 2023-01-09
- 1.2.0 — 2022-08-05
- 1.1.0 — 2019-11-05
- 1.0.1 — 2019-07-25
- 1.0.0 — 2019-07-03

## README

[![npm](https://img.shields.io/npm/v/is-valid-acn.svg)](https://www.npmjs.com/package/is-valid-acn) ![downloads](https://img.shields.io/npm/dt/is-valid-acn.svg) [![CI](https://github.com/wojtekmaj/is-valid-acn/actions/workflows/ci.yml/badge.svg)](https://github.com/wojtekmaj/is-valid-acn/actions)

# Is-Valid-ACN

Check if a number is a valid Australian Company Number (ACN).

## tl;dr

- Install by executing `npm install is-valid-acn` or `yarn add is-valid-acn`.
- Import by adding `import isValidACN from 'is-valid-acn'`.
- Use it by writing `const valid = isValidACN('010499966')`

## See also

- [is-valid-abn](https://github.com/wojtekmaj/is-valid-abn): Check if a number is a valid Australian Business Number (ABN).

## Examples

```ts
isValidACN('010499966'); // true

isValidACN('010 499 966'); // true

isValidACN('010-499-966'); // true
```

## License

The MIT License.

## Author

<table>
  <tr>
    <td >
      <img src="https://avatars.githubusercontent.com/u/5426427?v=4&s=128" width="64" height="64" alt="Wojciech Maj">
    </td>
    <td>
      <a href="https://github.com/wojtekmaj">Wojciech Maj</a>
    </td>
  </tr>
</table>

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