Packages

is-plain-object

5.1.0 · 21 Aug 2026MIT100.9M / weekRepositorynpmAtom feed

Your version

5.0.0

major9 Sep 2020Where it was published

5.1.0 is the newest release of 5.x.

In short

1 new1 changed

Release note

  • Migrated from default to named export (see why here #17):

ESM/TypeScript

- import isPlainObject from 'is-plain-object';
+ import { isPlainObject } from 'is-plain-object';

CommonJS

- const isPlainObject = require('is-plain-object');
+ const { isPlainObject } = require('is-plain-object');
  • Added native ESM support via exports mapping

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.