nested-object-to-key-value
Version:
A lightweight utility to flatten nested JavaScript objects into dot-notation key-value pairs and unflatten them back. Perfect for handling complex configurations, form data, or API transformations.
67 lines (66 loc) • 1.91 kB
JSON
{
"name": "nested-object-to-key-value",
"version": "1.0.10",
"author": "uǝsʇƃᴉɹqǝƃuI puᴉʌᴉƎ",
"scripts": {
"build": "rm -rf dist && tsc",
"test": "vitest",
"test:ci": "vitest --run --coverage --reporter=verbose",
"prepare": "npm run build",
"lint": "biome check .",
"format": "biome format . --write",
"prepublishOnly": "npm test && npm run build",
"preversion": "npm run lint",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags",
"release:patch": "npm version patch -m 'chore: release %s'",
"release:minor": "npm version minor -m 'chore: release %s'",
"release:major": "npm version major -m 'chore: release %s'"
},
"keywords": [
"typescript",
"javascript",
"object",
"flatten",
"unflatten",
"key-value",
"nested-objects",
"dot-notation",
"object-transform",
"deep-object",
"configuration",
"form-data",
"json-transform",
"object-manipulation",
"data-structure"
],
"license": "MIT",
"type": "module",
"types": "dist/index.d.ts",
"exports": "./dist/index.js",
"description": "A lightweight utility to flatten nested JavaScript objects into dot-notation key-value pairs and unflatten them back. Perfect for handling complex configurations, form data, or API transformations.",
"files": ["dist", "README.md"],
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@vitest/coverage-v8": "^3.0.7",
"typescript": "5.8.2",
"vitest": "3.0.7"
},
"repository": "eivindingebrigtsen/nested-object-to-key-value",
"bugs": {
"url": "https://github.com/eivindingebrigtsen/nested-object-to-key-value/issues"
},
"homepage": "https://github.com/eivindingebrigtsen/nested-object-to-key-value#readme",
"engines": {
"node": ">=14.0.0"
},
"vitest": {
"coverage": {
"reporter": ["text", "json", "html"],
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
}