This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
| let glob = require('glob'); | |
| let fs = require('fs'); | |
| const prettier = require('prettier'); | |
| var readJson = (path, cb) => { | |
| fs.readFile(require.resolve(path), (err, data) => { | |
| if (err) cb(err); | |
| else cb(JSON.parse(data)); | |
| }); | |
| }; |
| import StringUtility from "./StringUtility"; | |
| import Util from "./Util"; | |
| export default class PropertyNormalizerUtility { | |
| static normalize(json) { | |
| const dataOrEmptyObject = Boolean(json) ? json : {}; | |
| // Makes all property names camelCase so they are consistent in the application. | |
| // Also recursively goes through child objects. | |
| return Util.clone(dataOrEmptyObject, StringUtility.toCamelCase); |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks