Blame view
lib/history.js
242 Bytes
4fbfae95f
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
'use strict'; const CircularBuffer = require("circular-buffer"); const history = new CircularBuffer(200); function push(item) { history.push(item); } function dump() { history.toarray(); } exports.push = push; exports.dump = dump; |