nonenumerable

Decorator to make properties non-enumerable.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
nonenumerable
401.1.17 years ago7 years agoMinified + gzip package size for nonenumerable in KB

Readme

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