Skip to content

Instantly share code, notes, and snippets.

View lukebrandonfarrell's full-sized avatar
✌️
fixing bugs since 1996

Luke Brandon Farrell lukebrandonfarrell

✌️
fixing bugs since 1996
View GitHub Profile
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);

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment