# method-enumerable-decorator

> Allow enumeration of ES6 class methods.

Latest version **0.1.2** (published 2017-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install method-enumerable-decorator
pnpm add method-enumerable-decorator
yarn add method-enumerable-decorator
bun add method-enumerable-decorator
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-06-07 |
| First published | 2017-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Keita Moromizato |
| Maintainers | keita_moromizato |

## Links

- npm: https://www.npmjs.com/package/method-enumerable-decorator
- Repository: https://github.com/KeitaMoromizato/method-enumerable-decorator
- Homepage: https://github.com/KeitaMoromizato/method-enumerable-decorator#readme
- Issues: https://github.com/KeitaMoromizato/method-enumerable-decorator/issues
- npm.io page: https://npm.io/package/method-enumerable-decorator

## Recent versions

- 0.1.2 (latest) — 2017-06-07
- 0.1.1 — 2017-05-06
- 0.1.0 — 2017-05-06

## README

# method-enumerable-decorator

Allow enumeration of ES6 class methods.

## Setup

```
$ npm i method-enumerable-decorator --save
$ npm i babel babel-core babel-plugin-transform-decorators-legacy babel-preset-es2015 --dev
```

`.babelrc`

```
{
  "presets": [
    "es2015"
  ],
  "plugins": [
    "transform-decorators-legacy"
  ]
}
```

## Usage

```js
class Hoge {
  huga() {}
}

const hoge = new Hoge()
Object.keys(hoge)
// => []

import MethodEnumerable from 'method-enumerable-decorator'

@MethodEnumerable
class Huga {
  hoge() {}
}

const huga = new Huga()
Object.keys(huga)
// => ['huga', 'hoge']
```

## Test

```
$ npm test
```

## Lisence

MIT

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