mirror of
https://github.com/fenwick67/mastofeed
synced 2024-12-23 07:38:10 +01:00
16 lines
316 B
JavaScript
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');
|
|
})
|