Package Exports
- lazy-value
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lazy-value) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lazy-value 
Create a lazily evaluated value
Useful when a value is expensive to generate, so you want to delay the computation until the value is needed. For example, improving startup performance by deferring nonessential operations.
Install
$ npm install lazy-value
Usage
const lazyValue = require('lazy-value');
const value = lazyValue(() => expensiveComputation());
app.on('user-action', () => {
doSomething(value());
});
API
lazyValue(fn)
fn
Type: Function
Expected to return a value.
Related
- define-lazy-prop - Define a lazily evaluated property on an object
- import-lazy - Import a module lazily
- p-lazy - Create a lazy promise
License
MIT © Sindre Sorhus