UNPKG
node-fetch-native
Version:
latest (1.6.7)
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.0
A better redistribution of `node-fetch`
github.com/unjs/node-fetch-native
unjs/node-fetch-native
node-fetch-native
/
lib
/
index.cjs
12 lines
(8 loc)
•
213 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
nodeFetch =
require
(
'../dist/index.cjs'
)
function
fetch
(
input, options
) {
return
nodeFetch.
fetch
(input, options) }
for
(
const
key
in
nodeFetch) { fetch[key] = nodeFetch[key] }
module
.
exports
= fetch