Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-79-npm / redis-parser / redis-parser.js
357 bytesRaw
1 | ; |
2 | |
3 | var Parser = require('redis-parser'); |
4 | var parser = new Parser({ |
5 | name: 'auto', |
6 | returnReply: function (reply) { |
7 | console.log(reply); |
8 | }, |
9 | returnError: function (error) { |
10 | console.log(error); |
11 | }, |
12 | returnFatalError: function (error) { |
13 | console.log(error); |
14 | } |
15 | }); |
16 | |
17 | if (Array.isArray(parser.bufferCache)) { |
18 | console.log('ok'); |
19 | } |
20 |
Built with git-ssb-web