UNPKG

backlog

Version:

Node.js module for logging your file changes and even better saving & recovering your code.

18 lines (14 loc) 445 B
var backlog = require('../index.js') var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, '127.0.0.1'); console.log('Server running at http://127.0.0.1:1337/'); backlog.settings({ backup: true, logFile: 'jared.log', message: 'This is my code that has this thing in it...' }); backlog.retrieve(1, 'jared.log'); backlog.init();