forked from sam/fedifeed
14 lines
319 B
JavaScript
14 lines
319 B
JavaScript
// do a test
|
|
|
|
|
|
import { createReadStream, writeFileSync } from "fs";
|
|
import convert from "../lib/convert.js";
|
|
|
|
|
|
let r = createReadStream("./test/sample.atom");
|
|
|
|
convert(r,function(er,data){
|
|
if (er){return console.log("error: ",er);}
|
|
console.log("ok");
|
|
writeFileSync("./test/result.html",data,"utf8");
|
|
});
|