# objLite **Repository Path**: vkuyxu/objLite ## Basic Information - **Project Name**: objLite - **Description**: A lightweight utility library for object manipulation. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-11 - **Last Updated**: 2026-03-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # obj-lite A lightweight utility library for object manipulation. ## docs [https://vkuyxu.github.io/obj-lite/](https://vkuyxu.github.io/obj-lite/) ## Installation ```bash npm install obj-lite ``` ## Usage ```javascript import { omit, pick, set, get } from 'obj-lite'; // Example usage const obj = { a: 1, b: 2, c: { d: 3 } }; // Omit properties const omitted = omit(obj, ['a']); // { b: 2, c: { d: 3 } } // Pick properties const picked = pick(obj, ['a', 'c']); // { a: 1, c: { d: 3 } } // Set property const newObj = set({}, 'a.b.c', 1); // { a: { b: { c: 1 } } } // Get property const value = get(obj, 'c.d'); // 3 ``` ## API * `omit(object, paths)` - Remove specified properties from object * `pick(object, paths)` - Select specified properties from object * `set(object, path, value)` - Set value at specified path * `get(object, path, defaultValue)` - Get value at specified path