UNPKG
shortcake
Version:
latest (1.2.8)
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.20
1.1.19
1.1.18
1.1.17
1.1.16
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.5.1
0.5.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
Asynchronous invoke and other goodies for cake.
github.com/zeekay/shortcake
zeekay/shortcake
shortcake
/
src
/
use.coffee
9 lines
(6 loc)
•
155 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
import
{isFunction, isString}
from
'./utils'
export
default
(pkg, opts = {}) ->
if
isString pkg pkg =
require
pkg
if
isFunction pkg pkg opts