mpath
npmv0.9.0{G,S}et object values using MongoDB-like path notation
Not recommended for new projects
No — mpath should not be adopted for new projects. Last published 1606 days ago.
- AAdoption: grade A, Excellent.
5.8M downloads per week and 1 known dependents.
- FMaintenance: grade F, Failing.
Last published 1606 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 87 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding mpath to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=4.0.0
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the mpath README.
var mpath = require('mpath');
var obj = {
comments: [
{ title: 'funny' },
{ title: 'exciting!' }
]
}
mpath.get('comments.1.title', obj) // 'exciting!'mpath vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| mpaththis page | 5.8M | 1 | MIT | 4 years ago |
| path-key | 244.9M | 1 | MIT | 1 day ago |
| @jridgewell/resolve-uri | 166.3M | 1 | MIT | 1 day ago |
| normalize-path | 72.6M | 1 | MIT | 1 day ago |
| set-cookie-parser | 50.2M | 2 | MIT | 1 day ago |
| unicorn-magic | 31.6M | 1 | MIT | 1 day ago |
Dependencies
Declared by mpath v0.9.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (3)
Used by
Popular packages that depend on mpath.
Relationship graph
Dependencies (left) and dependents (right) of mpath.
Frequently installed together
RFC9562 UUIDs
An AST-based pattern checker for JavaScript.
A family of specs for interoperable TypeScript
Fast, unopinionated, minimalist web framework
Parse, validate, manipulate, and display dates
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
Expressive query building for MongoDB
Official client encryption module for the MongoDB Node.js driver
Next-generation take on pre/post function hooks
The official MongoDB driver for Node.js
the most correct and second fastest glob implementation in JavaScript
TypeScript definitions for node
Release history
No releases in the last two years, typically about 84 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.9.0latest | 4 years ago | 87 KB | MIT |
| 0.8.4 | 5 years ago | 94 KB | MIT |
| 0.8.3 | 5 years ago | 93 KB | MIT |
| 0.8.2 | 5 years ago | 93 KB | MIT |
| 0.8.1 | 5 years ago | 88 KB | MIT |
| 0.8.0 | 5 years ago | 88 KB | MIT |
| 0.7.0 | 6 years ago | 86 KB | MIT |
| 0.6.0 | 7 years ago | 86 KB | MIT |
| 0.5.2 | 7 years ago | 86 KB | MIT |
| 0.5.1 | 8 years ago | 85 KB | MIT |
| 0.5.0 | 8 years ago | 85 KB | MIT |
| 0.4.1 | 8 years ago | 84 KB | MIT |
| 0.4.0 | 8 years ago | 84 KB | MIT |
| 0.3.0 | 9 years ago | — | MIT |
| 0.2.1 | 13 years ago | — | MIT |
Overview
mpath is an npm package that {G,S}et object values using MongoDB-like path notation. It is very popular, with about 5.8M downloads per week and 1 known dependents in the graph. The latest version is 0.9.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need {G,S}et object values using MongoDB-like path notation and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (5.8M weekly downloads).
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use mpath?
No — mpath should not be adopted for new projects. Last published 1606 days ago.
How do I install mpath?
Run `npm install mpath` to add mpath to your npm project.
What license is mpath released under?
mpath is distributed under the MIT license.
How popular is mpath?
mpath has approximately 5,781,524 downloads per week and 1 known dependent packages.
Is mpath still maintained?
The most recent release of mpath (v0.9.0) was published 4 years ago.
Does mpath run install scripts?
No. mpath does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.