npm.io
1.1.1 • Published 8 years ago

nonenumerable

Licence
MIT
Version
1.1.1
Deps
0
Vulns
0
Weekly
0
Stars
4

nonenumerable Build status

Decorator to make properties non-enumerable.

Usage

Ensure you have decorators support in your environment. For TypeScript, add "experimentalDecorators": true in your tsconfig.json. For Babel, configure the syntax-decorator plugin.

import { nonenumerable } from "nonenumerable";

class MyClass {
    @nonenumerable
    property = 5;
}

License

MIT

Keywords