{"library":"babel-plugin-idx","type":"library","category":null,"description":"babel-plugin-idx is a Babel plugin designed to transform usages of the `idx` utility function into explicit null-checking code. The `idx` utility, now deprecated and unmaintained, was created by Facebook to safely access deeply nested properties on objects and arrays where intermediate properties might be `null` or `undefined`, preventing `TypeError` exceptions. The plugin effectively replaces calls like `idx(props, _ => _.user.friends[0].friends)` with verbose but safe conditional expressions, optimizing performance by removing the need for a runtime `idx` function. The current stable version is 3.0.3, but the module is no longer receiving updates. Its primary differentiator was providing safe property access similar to the now-standard optional chaining (`?.`) operator, though with a key difference: `idx` returns `null` or `undefined` for intermediate `null`/`undefined` values, while optional chaining consistently resolves to `undefined`. This plugin is essential for `idx` to function correctly and efficiently, as the `idx` runtime function is purely illustrative.","language":"javascript","status":"deprecated","version":"3.0.3","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-idx","imports":["import idx from 'idx';"]},{"cmd":"yarn add babel-plugin-idx","imports":[]},{"cmd":"pnpm add babel-plugin-idx","imports":[]}],"homepage":null,"github":"https://github.com/facebook/idx","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-idx","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-idx/compatibility"}}