Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pawsong/lazy-get
- Owner: pawsong
- Created: 2019-12-15T14:41:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:03:10.000Z (almost 2 years ago)
- Last Synced: 2023-04-06T04:31:52.799Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 956 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
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