UNPKG

args-any

Version:

Utility lib for parsing command options

15 lines 481 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toObject = void 0; const string_converter_1 = require("string-converter"); const toObject = (map) => { const obj = {}; map.forEach((value, key) => { const convertedValue = (0, string_converter_1.convert)(value); Reflect.set(obj, key, convertedValue); }); return obj; }; exports.toObject = toObject; //# sourceMappingURL=partial.to-object.js.map