tf2-item-format
Version:
Format's TF2 items like backpack.tf does
15 lines • 680 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const parseString_1 = __importDefault(require("./parseString"));
const stringify_1 = __importDefault(require("./stringify"));
/**
* Fixes the order of attributes in your name,
* this is highly exrimental due to the
* nature of attributes being parsed in way
* they're put in inside the name.
*/
exports.default = (schema, name) => (0, stringify_1.default)(schema, (0, parseString_1.default)(schema, name, false, false));
//# sourceMappingURL=fixName.js.map