</>PackageGraphPackageGraph

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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

87 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
mpaththis page5.8M1MIT4 years ago
path-key244.9M1MIT1 day ago
@jridgewell/resolve-uri166.3M1MIT1 day ago
normalize-path72.6M1MIT1 day ago
set-cookie-parser50.2M2MIT1 day ago
unicorn-magic31.6M1MIT1 day ago

Dependencies

Declared by mpath v0.9.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

benchmark ~1.0.0eslint 7.16.0mocha 5.x

Used by

Popular packages that depend on mpath.

Relationship graph

Dependencies (left) and dependents (right) of mpath.

mongoosempath
mpath dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 84 days apart.

Recent versions of mpath
VersionPublishedSizeLicense
0.9.0latest4 years ago87 KBMIT
0.8.45 years ago94 KBMIT
0.8.35 years ago93 KBMIT
0.8.25 years ago93 KBMIT
0.8.15 years ago88 KBMIT
0.8.05 years ago88 KBMIT
0.7.06 years ago86 KBMIT
0.6.07 years ago86 KBMIT
0.5.27 years ago86 KBMIT
0.5.18 years ago85 KBMIT
0.5.08 years ago85 KBMIT
0.4.18 years ago84 KBMIT
0.4.08 years ago84 KBMIT
0.3.09 years agoMIT
0.2.113 years agoMIT

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.

Maintainers

Keywords

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.