Skip to content
PluginStats

eslint-plugin-de-morgan weekly downloads statistics

By azat-io (2 listings) · npm · ESLint plugins

ESLint plugin for transforming negated boolean expressions via De Morgan’s laws

View on npm Fresh · Dec 6, 2026

eslint-plugin-de-morgan has 101,700 recorded weekly downloads on npm, an increase of 96.5% over the past 30 days, ranking #636 of 3,247 tracked listings.

Weekly downloads
101,700
Official API · Dec 5, 2026
7-day growth
+35.9%
+26.9K weekly downloads
30-day growth
+96.5%
+50K weekly downloads
90-day growth
+225%
+70.4K weekly downloads
Rank
#636
▲ 40 in 7 days

About eslint-plugin-de-morgan

ESLint Plugin De Morgan

<img src="https://raw.githubusercontent.com/azat-io/eslint-plugin-de-morgan/main/assets/logo.svg" alt="ESLint Plugin De Morgan logo" align="right" height="160" />

Version Monthly Download Code Coverage GitHub License

An ESLint plugin that enforces logical consistency by transforming negated boolean expressions according to De Morgan’s laws.

This plugin automatically rewrites negated conjunctions and disjunctions to improve code clarity and reduce potential logical errors.

Why

In Boolean algebra, De Morgan’s laws are two transformation rules that are both valid rules of inference. They are named after Augustus De Morgan and are fundamental in the fields of mathematics, computer science, and digital logic. The laws state that:

First Law:

¬(A ∧ B) ≡ (¬A) ∨ (¬B)

Second Law:

¬(A ∨ B) ≡ (¬A) ∧ (¬B)

Using these principles, the plugin provides two ESLint rules:

  • no-negated-conjunction — Transforms negated conjunctions (i.e. expressions of the form !(A && B)) into the equivalent disjunction of negations (!A || !B).
  • no-negated-disjunction — Transforms negated disjunctions (i.e. expressions of the form !(A || B)) into the equivalent conjunction of negations (!A && !B).

These transformations are grounded in Boolean algebra and can help make the logic of your code more explicit and easier to understand.

Why Use De Morgan’s Laws?

De Morgan’s laws are a cornerstone of Boolean algebra and have several practical benefits in programming:

  • Clarity: Rewriting complex negations often results in expressions that more clearly communicate the underlying logic.

  • Avoiding Logical Errors: When dealing with nested logical expressions, small mistakes in the placement of negations can lead to subtle bugs. By enforcing a consistent style based on well-known laws, the plugin helps reduce such errors.

  • Simplification: In some cases, the transformed expression may be simpler to evaluate and optimize, both for human readers and for compilers / interpreters.

Examples

Base example

Before:

if (!(a && b)) {
  /* ... */
}

After:

if (!a || !b) {
  /* ... */
}

More complex example

Before:

if (!(a || !b || c >= 10 || d !== e)) {
  /* ... */
}

After:

if (!a && b && !(c >= 10) && d === e) {
  /* ... */
}

Installation

You'll first need to install ESLint or Oxlint:

npm install --save-dev eslint
# or
npm install --save-dev oxlint

Next, install eslint-plugin-de-morgan:

npm install --save-dev eslint-plugin-de-morgan

Usage

The easiest way to use eslint-plugin-de-morgan is to use ready-made config.

Flat Config (eslint.config.js)
<!-- prettier-ignore -->
import deMorgan from 'eslint-plugin-de-morgan'

export default [
  deMorgan.configs.recommended,
]
Legacy Config (.eslintrc.js)
<!-- prettier-ignore -->
module.exports = {
  extends: [
    'plugin:de-morgan/recommended-legacy',
  ],
}
Oxlint (.oxlintrc.json)

Oxlint loads the plugin as a JS plugin and does not use its ready-made configs, so enable the rules directly:

{
  "jsPlugins": ["eslint-plugin-de-morgan"],
  "rules": {
    "de-morgan/no-negated-conjunction": "error",
    "de-morgan/no-negated-disjunction": "error"
  }
}

Rules

🔧 Automatically fixable by the --fix CLI option.

NameDescription🔧
no-negated-conjunctionTransforms the negation of a conjunction into the equivalent disjunction🔧
no-negated-disjunctionTransforms the negation of a disjunction into the equivalent conjunction🔧

Further Reading

Versioning Policy

This plugin is following Semantic Versioning and ESLint's Semantic Versioning Policy.

Contributing

See Contributing Guide.

License

MIT © Azat S.

Description from the npm listing.

  • eslint
  • eslint-plugin
  • de-morgan

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

eslint-plugin-de-morgan weekly downloads on npm, last 90 days: 101,700 weekly downloads as of Dec 5, 2026, +225% over 90 days.eslint-plugin-de-morganWeekly downloads on npm · Last 90 days101,700downloads / week+225% over 90 days020K40K60K80K100K120KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
eslint-plugin-de-morgan weekly downloads on npm, last 90 days: 101,700 weekly downloads as of Dec 5, 2026, +225% over 90 days.

7/30/90-day growth

eslint-plugin-de-morgan weekly downloads growth on npm: +35.9% over 7 days, +96.5% over 30 days, +225% over 90 days.eslint-plugin-de-morganWeekly downloads growth on npm101,700downloads / week now7-day growth+26,858 weekly downloads+35.9%30-day growth+49,956 weekly downloads+96.5%90-day growth+70,441 weekly downloads+225%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-de-morgan weekly downloads growth on npm: +35.9% over 7 days, +96.5% over 30 days, +225% over 90 days.

Ranking history

eslint-plugin-de-morgan npm ranking history: currently #636 (by weekly downloads).eslint-plugin-de-morgannpm ranking · by weekly downloads · Last 90 days#636current rank#620#640#660#680#700#720#740#760#780#800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-de-morgan npm ranking history: currently #636 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 32, #16 (overall #636)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 8, #14 (overall #154)
ESLint plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for eslint-plugin-de-morgan
Date (UTC)Weekly downloadsChange vs. previous
101,700-465
102,165+4.9K
97,265+5.6K
91,674+5K
86,663+7.1K
79,541+3K
76,534+1.7K
74,842+494
74,348+1.8K
72,570-296
72,866+355
72,511-312
72,823-938
73,761—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-de-morgan alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/eslint-plugin-de-morgan. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.