Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pawsong/lazy-get

decorator for getter lazy evaluation
https://github.com/pawsong/lazy-get

Last synced: about 5 hours ago
JSON representation

decorator for getter lazy evaluation

Awesome Lists containing this project

README

        

# lazy-get

decorator for getter lazy evaluation

## Example

```typescript
import lazy from 'lazy-get'

class MyModule {
@lazy get field() {
return {}
}
}

const mod = new MyModule()
assert(mod.field === mod.field)
```

## License

MIT