8 lines
209 B
JavaScript
8 lines
209 B
JavaScript
|
import fetch from 'node-fetch'
|
||
|
import config from '../config'
|
||
|
|
||
|
global.fetch = (...args)=> fetch( ...args )
|
||
|
.then( res=> (res.text().then( txt=> fs.outputFile(`${config.dataDir}/fetched/${Date.now()}`)))
|
||
|
|
||
|
|