is-plain-obj
npmv4.1.0TypeScriptCheck 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.
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 >=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('({})'));is-plain-obj 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 |
|---|---|---|---|---|
| is-plain-objthis page | 112.9M | 1 | MIT | 4 years ago |
| is-glob | 137.4M | 3 | MIT | 16 hours ago |
| is-extglob | 0 | 1 | MIT | 16 hours ago |
| is-generator-fn | 0 | 1 | MIT | 19 hours ago |
| is-wsl | 117.6M | 4 | MIT | 19 hours ago |
| type-check | 101.4M | 2 | MIT | 17 hours ago |
Dependencies
Declared by is-plain-obj v4.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (3)
Used by
Popular packages that depend on is-plain-obj.
Relationship graph
Dependencies (left) and dependents (right) of is-plain-obj.
Frequently installed together
A high-level API to control headless Chrome over the DevTools Protocol
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
A simple list of CSS shorthand properties and which longhand properties they expand to
html formatter yo! Prettify or minify html.
Create, read and edit .zip files with JavaScript http://stuartk.com/jszip
The lodash method `_.cloneDeep` exported as a module.
TypeScript definitions for @sinonjs/fake-timers
Utility package providing type information for a variety of WebdriverIO interfaces
A WDIO helper utility to provide several utility functions used across the project.
CSS value parser
React Element Selector Query (resq) - Query React components and children by selector (component name)
lightweight rgb/rgba to hex parser
Release history
No releases in the last two years, typically about 276 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.1.0latest | 4 years ago | 4.0 KB | MIT |
| 4.0.0 | 5 years ago | 3.6 KB | MIT |
| 3.0.0 | 5 years ago | 3.7 KB | MIT |
| 2.1.0 | 6 years ago | 3.6 KB | MIT |
| 2.0.0 | 7 years ago | 3.2 KB | MIT |
| 1.1.0 | 11 years ago | — | MIT |
| 1.0.0 | 11 years ago | — | MIT |
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
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.