{"library":"rollup-plugin-json-map-keys","title":"rollup-plugin-json-map-keys","description":"Rollup plugin that recursively transforms JSON values into their dot-separated key paths, useful for i18n key generation or object value replacement. Latest version 1.2.0 (2025-11-22) requires rollup >= 2. The package has seen recent maintenance including dependency updates and path restructuring. It is part of a monorepo with webpack loader and Jest transformer equivalents. Key differentiators: designed specifically for Rollup, outputs JSON with key paths, supports custom prefix via options.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-json-map-keys"],"cli":null},"imports":["import jsonMapKeys from 'rollup-plugin-json-map-keys'","import jsonMapKeys from 'rollup-plugin-json-map-keys'","import type { Plugin } from 'rollup'; // for TS users then use as return type of function"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import jsonMapKeys from 'rollup-plugin-json-map-keys';\nimport json from '@rollup/plugin-json'; // to import JSON files\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'es'\n  },\n  plugins: [\n    json(), // resolves .json imports\n    jsonMapKeys({\n      prefix: '[name]:' // optional prefix for key paths\n    })\n  ]\n};","lang":"javascript","description":"Configures Rollup to replace JSON values with dot-separated key paths, demonstates typical usage with @rollup/plugin-json.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}