</>PackageGraphPackageGraph

is-plain-obj

npmv4.1.0TypeScript

Check if a value is a plain object

Not recommended for new projects

No — is-plain-obj should not be adopted for new projects. Last published 1547 days ago.

  • AAdoption: grade A, Excellent.

    112.9M downloads per week and 1 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 1547 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 4.0 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • 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 is-plain-obj 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.

4.0 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 >=12
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the is-plain-obj README.

import isPlainObject from 'is-plain-obj';
import {runInNewContext} from 'node:vm';

isPlainObject({foo: 'bar'});
//=> true

isPlainObject(new Object());
//=> true

isPlainObject(Object.create(null));
//=> true

// This works across realms
isPlainObject(runInNewContext('({})'));
Example truncated — see the full README.

is-plain-obj vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
is-plain-objthis page112.9M1MIT4 years ago
is-glob137.4M3MIT16 hours ago
is-extglob01MIT16 hours ago
is-generator-fn01MIT19 hours ago
is-wsl117.6M4MIT19 hours ago
type-check101.4M2MIT17 hours ago

Dependencies

Declared by is-plain-obj v4.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (3)

ava ^3.15.0tsd ^0.14.0xo ^0.38.2

Used by

Popular packages that depend on is-plain-obj.

Relationship graph

Dependencies (left) and dependents (right) of is-plain-obj.

webdriveriois-plain-obj
is-plain-obj dependencies dependents

Frequently installed together

Release history

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

Recent versions of is-plain-obj
VersionPublishedSizeLicense
4.1.0latest4 years ago4.0 KBMIT
4.0.05 years ago3.6 KBMIT
3.0.05 years ago3.7 KBMIT
2.1.06 years ago3.6 KBMIT
2.0.07 years ago3.2 KBMIT
1.1.011 years agoMIT
1.0.011 years agoMIT

Overview

is-plain-obj is an npm package that check if a value is a plain object. It is extremely widely used, with about 112.9M downloads per week and 1 known dependents in the graph. The latest version is 4.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need check if a value is a plain object and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (112.9M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use is-plain-obj?

No — is-plain-obj should not be adopted for new projects. Last published 1547 days ago.

How do I install is-plain-obj?

Run `npm install is-plain-obj` to add is-plain-obj to your npm project.

What license is is-plain-obj released under?

is-plain-obj is distributed under the MIT license.

How popular is is-plain-obj?

is-plain-obj has approximately 112,891,619 downloads per week and 1 known dependent packages.

Is is-plain-obj still maintained?

The most recent release of is-plain-obj (v4.1.0) was published 4 years ago.

Does is-plain-obj run install scripts?

No. is-plain-obj does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.