1
0
mirror of https://github.com/fenwick67/mastofeed synced 2024-12-22 23:28:26 +01:00
mastofeed-iframe-embed/test/test.js
2017-04-29 17:34:17 -05:00

16 lines
316 B
JavaScript

// do a test
var fs = require('fs'),
request = require('request'),
convert = require('../lib/convert')
var r = fs.createReadStream('./test/sample.atom');
convert(r,function(er,data){
if (er){return console.log('error: ',er)}
console.log('ok');
fs.writeFileSync('./test/result.html',data,'utf8');
})