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