mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
19 lines
No EOL
260 B
JavaScript
Executable file
19 lines
No EOL
260 B
JavaScript
Executable file
define([
|
|
],
|
|
|
|
function () {
|
|
|
|
"use strict";
|
|
|
|
var Parser = {};
|
|
|
|
Parser.encode = function (message) {
|
|
return JSON.stringify(message);
|
|
}
|
|
|
|
Parser.decode = function (message) {
|
|
return JSON.parse(message);
|
|
}
|
|
|
|
return Parser;
|
|
}); |