10 lines
152 B
JavaScript
Raw Normal View History

2016-10-27 15:33:15 +02:00
export default class JSONFormatter {
fromFile(content) {
return JSON.parse(content);
}
toFile(data) {
2016-10-28 04:51:37 +02:00
return JSON.stringify(data);
2016-10-27 15:33:15 +02:00
}
}