# enums

> Compatible for java Enum

Latest version **1.0.3** (published 2019-03-21) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score; declining downloads.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-03-21 |
| First published | 2014-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.12.0 |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Maintainers | coolme200, gxcsoccer |
| Keywords | enums, java |

## Links

- npm: https://www.npmjs.com/package/enums
- Repository: https://github.com/node-modules/enums
- Issues: https://github.com/node-modules/enums/issues
- npm.io page: https://npm.io/package/enums

## Recent versions

- 1.0.3 (latest) — 2019-03-21
- 1.0.2 — 2019-03-21
- 1.0.1 — 2017-05-22
- 1.0.0 — 2016-03-28
- 0.1.4 — 2015-04-16
- 0.1.3 — 2015-03-30
- 0.1.2 — 2015-03-15
- 0.1.1 — 2015-01-28
- 0.1.0 — 2015-01-23
- 0.0.1 — 2014-12-10

## README

# Enums

## Usage

```js
var status = new Enums([
  {
    name: 'CLOSED',
    code: '1',
    message: 'Shop close'
  },
  {
    name: 'OPENED',
    code: '2',
    message: 'Shop open'
  }
]);

console.log(status.CLOSED);
console.log(status.OPENED);
```

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