Skip to content
PluginStats

babel-plugin-espower weekly downloads statistics

By power-assert-js · npm · Babel plugins

Babel plugin for power-assert

View on npm Fresh · Dec 6, 2026

babel-plugin-espower has 95,526 recorded weekly downloads on npm, an increase of 4.8% over the past 30 days, ranking #646 of 3,247 tracked listings.

Weekly downloads
95,526
Official API · Dec 5, 2026
7-day growth
-13.3%
-14.6K weekly downloads
30-day growth
+4.8%
+4.3K weekly downloads
90-day growth
-20.7%
-24.9K weekly downloads
Rank
#646
▼ 39 in 7 days

About babel-plugin-espower

babel-plugin-espower

Babel plugin for power-assert.

[![Build Status][travis-image]][travis-url] [![NPM version][npm-image]][npm-url] [![Dependency Status][depstat-image]][depstat-url] [![License][license-image]][license-url]

DESCRIPTION

babel-plugin-espower is a Babel plugin for power-assert.

power-assert provides descriptive assertion messages for your tests, like this.

  1) ES6 demo Destructuring and TemplateLiteral:

      AssertionError:   # test/demo_test.js:7

  assert(`${ alice.name } and ${ bob.name }` === `bob and alice`)
         |   |     |             |   |       |   |
         |   |     |             |   |       |   "bob and alice"
         |   |     |             |   "bob"   false
         |   |     "alice"       Object{name:"bob"}
         |   Object{name:"alice"}
         "alice and bob"

  --- [string] `bob and alice`
  +++ [string] `${ alice.name } and ${ bob.name }`
  @@ -1,13 +1,13 @@
  -bob and alice
  +alice and bob

Pull-requests, issue reports and patches are always welcomed. See power-assert project for more documentation.

FYI: There's a babel preset for all power-assert plugins

INSTALL

$ npm install --save-dev babel-plugin-espower

CAUTION

Babel7 is incompatible with Babel6. Babel6 is incompatible with Babel5.

For Babel6, you need to use the 2.x release of babel-plugin-espower.

$ npm install --save-dev babel-plugin-espower@2

For Babel5 or lower, you need to use the 1.x release of babel-plugin-espower.

$ npm install --save-dev babel-plugin-espower@1

HOW TO USE

via .babelrc
{
  "presets": [
    ...
  ],
  "plugins": [
    "babel-plugin-espower"
  ]
}
$ babel /path/to/test/some_test.js > /path/to/build/some_test.js

For example, with @babel/register module and .babelrc above, you can run mocha without code generation steps.

$ $(npm bin)/mocha --require @babel/register test/some_test.js
via Babel API
var babel = require('@babel/core');
var jsCode = fs.readFileSync('/path/to/test/some_test.js');
var transformed = babel.transform(jsCode, {
    presets: [...],
    plugins: ['babel-plugin-espower']
});
console.log(transformed.code);
via Babel Require Hook
require('@babel/register')({
    presets: [...],
    plugins: ['babel-plugin-espower']
});

For example, with babel_hook.js above, you can run mocha without code generation steps.

$ $(npm bin)/mocha --require ./babel_hook /path/to/test/demo_test.js
with babelify
var fs = require('fs');
var browserify = require('browserify');
var babelify = require('babelify');
var glob = require('glob'),
browserify({ entries: glob.sync('./test/*_test.js'), debug: true })
  .transform(babelify.configure({
      presets: [...],
      plugins: ['babel-plugin-espower']
  }))
  .bundle()
  .on('error', function (err) { console.log('Error : ' + err.message); })
  .pipe(fs.createWriteStream('all_test.js'));
$ $(npm bin)/browserify -d -e ./test/*_test.js -t [ babelify --presets ... --plugins babel-plugin-espower ]
with babelify and gulp
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var glob = require('glob'),
gulp.task('build_test', function() {
    var files = glob.sync('./test/*_test.js');
    var b = browserify({entries: files, debug: true});
    b.transform(babelify.configure({
        presets: [...],
        plugins: ['babel-plugin-espower']
    }));
    return b.bundle()
        .pipe(source('all_test.js'))
        .pipe(gulp.dest('./build'));
});
with babelify and Karma
module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'browserify'],
    files: [
      "test/**/*.js"
    ],
    preprocessors: {
      "test/**/*.js": "browserify"
    },
    browserify: {
      debug: true,
      transform: [
        [
          'babelify', {
            presets: [...],
            plugins: ['babel-plugin-espower']
          }
        ]
      ]
    },
    // ...

EXAMPLE

For given test file test/demo_test.js below,

import assert from 'power-assert';

describe('ES6 demo', () => {

    it('Destructuring and TemplateLiteral', () => {
        let [alice, bob] = [ { name: 'alice' }, { name: 'bob' } ];
        assert(`${alice.name} and ${bob.name}` === `bob and alice`);
    });

    it('ArrowFunctionExpression and SpreadElement', () => {
        let seven = 7, ary = [4, 5];
        assert(seven === ((v, i) => v + i)(...[...ary]));
    });

    it('Enhanced Object Literals', () => {
        let name = 'bobby';
        assert.deepEqual({
            name,
            [ `${name}'s greet` ]: `Hello, I'm ${name}`
        }, null);
    });

});

prepare babel_hook.js to transform tests.

{
  "presets": [
    ...
  ],
  "plugins": [
    "babel-plugin-espower"
  ]
}

Run mocha with --require @babel/register option. You will see the power-assert output appears.

$ $(npm bin)/mocha --require @babel/register test/demo_test.js…

Description from the npm listing.

  • assert
  • assertion
  • babel
  • babel-plugin
  • power-assert
  • test
  • testing
  • transform

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

babel-plugin-espower weekly downloads on npm, last 90 days: 95,526 weekly downloads as of Dec 5, 2026, -20.7% over 90 days.babel-plugin-espowerWeekly downloads on npm · Last 90 days95,526downloads / week-20.7% over 90 days020K40K60K80K100K120K140K160KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
babel-plugin-espower weekly downloads on npm, last 90 days: 95,526 weekly downloads as of Dec 5, 2026, -20.7% over 90 days.

7/30/90-day growth

babel-plugin-espower weekly downloads growth on npm: -13.3% over 7 days, +4.8% over 30 days, -20.7% over 90 days.babel-plugin-espowerWeekly downloads growth on npm95,526downloads / week now7-day growth-14,616 weekly downloads-13.3%30-day growth+4,335 weekly downloads+4.8%90-day growth-24,918 weekly downloads-20.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-espower weekly downloads growth on npm: -13.3% over 7 days, +4.8% over 30 days, -20.7% over 90 days.

Ranking history

babel-plugin-espower npm ranking history: currently #646 (by weekly downloads).babel-plugin-espowernpm ranking · by weekly downloads · Last 90 days#646current rank#540#560#580#600#620#640#660#680#700Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-espower npm ranking history: currently #646 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 33, #6 (overall #646)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins263 listings · 14 pages · page 13, #3 (overall #243)
Babel 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 babel-plugin-espower
Date (UTC)Weekly downloadsChange vs. previous
95,526-1.7K
97,219-8K
105,204-674
105,878-6.1K
111,953+1.8K
110,115+3.1K
106,989-3.2K
110,142-2.9K
113,012+8.2K
104,847+2K
102,805+5.6K
97,221+5.6K
91,595+3.9K
87,680—

Similar npm Babel plugins plugins

All 20 babel-plugin-espower 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/babel-plugin-espower. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.