UNPKG
@jkcfg/std
Version:
latest (0.4.0)
0.4.0
0.3.2
0.3.0
0.2.10
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.1.0
jk standard library
github.com/jkcfg/jk
jkcfg/jk
@jkcfg/std
/
cmd
/
transform-module.js
7 lines
(6 loc)
•
193 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
transform
from
'@jkcfg/std/cmd/transform'
;
import
fn
from
'%s'
;
if
(
typeof
fn !==
'function'
) {
throw
new
Error
(
'default export of given module is not a function'
); }
transform
(fn);