UNPKG
transit-im
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.0
express-like framework for AIM bots creation (ICQ as well)
transit-im
/
middleware
/
format_json
/
formatJson.js
14 lines
(12 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Generated by CoffeeScript 1.6.3
(
function
(
) {
module
.
exports
=
function
(
) {
return
function
(
data
) {
if
(
typeof
data ===
'object'
) {
return
JSON
.
stringify
(data,
null
,
4
); }
else
{
return
data; } }; }; }).
call
(
this
);