Personal blog written from scratch using Node.js, Bootstrap, and MySQL. https://jrtechs.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
354 B

const fs = require('fs');
const sql = require('../utils/sql');
var stream = fs.createWriteStream("../sitemap.txt");
stream.once('open', function(fd)
{
sql.getSiteMap().then(function(result)
{
stream.write(result);
}).then(function()
{
stream.end();
}).catch(function(err)
{
console.log(err);
});
});