Files: 6f0c7afd16d33393e0a972dcf17ba5d5a4d48df7 / codec.js
175 bytesRaw
1 | module.exports = { |
2 | decode: function (string) { |
3 | return JSON.parse(string) |
4 | }, |
5 | encode: function (obj) { |
6 | return JSON.stringify(obj, null, 2) |
7 | }, |
8 | buffer: false |
9 | } |
10 | |
11 |
Built with git-ssb-web