podeng
Version:
Simple JSON value normalization to make everything gone right.
18 lines (13 loc) • 443 B
JavaScript
;
const normalize = require('../functions/normalize');
const serialize = require('../functions/serialize');
const deserialize = require('../functions/deserialize');
const cls = function (schema, options = {}, { isArray = false }) {
this.isArray = isArray;
this.schema = schema;
this.options = options;
this.normalize = normalize;
this.serialize = serialize;
this.deserialize = deserialize;
};
module.exports = cls;