Socket
Socket
Sign inDemoInstall

thunky

Package Overview
Dependencies
0
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

promise.js

2

package.json
{
"name": "thunky",
"version": "1.0.3",
"version": "1.1.0",
"description": "delay the evaluation of a paramless async function and cache the result",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -79,4 +79,20 @@ # thunky

## Promise version
A promise version is available as well
``` js
var thunkyp = require('thunky/promise')
var ready = thunkyp(async function () {
// ... do async stuff
return 42
})
// same semantics as the callback version
await ready()
```
## License
MIT
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc