MongoDB-style dot notation querying for JavaScript objects. It provides get, set, and parent traversal functions for nested object paths. This package is stable but very old (v0.1.1, last updated ~2013). It was designed for the now-defunct component(1) package manager and has no recent updates. Minimal and dependency-free, but lacks modern features like array index handling with brackets. Not actively maintained and best replaced by libraries like lodash._get or object-path.
npm install dot-componentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of dot.get, dot.set, and dot.parent with nested objects and arrays.
Migrate to maintained alternatives like lodash.get or object-path.
Use dot-only paths with numeric indices separated by dots.
Pass false as the fourth argument to disable path initialization.
Install via npm: npm install dot-component (the npm package name, not 'dot'). Or install the original from GitHub: npm install component/dot.
Use require('dot') instead of import.No dependency data recorded yet.