Skip to content
PluginStats

babel-plugin-transform-function-bind weekly downloads statistics

By babel (206 listings) · npm · Babel plugins

Compile function bind operator to ES5

View on npm Fresh · Dec 6, 2026

babel-plugin-transform-function-bind has 273,092 recorded weekly downloads on npm, a decrease of 4.2% over the past 30 days, ranking #481 of 3,247 tracked listings.

Weekly downloads
273,092
Official API · Dec 5, 2026
7-day growth
-3.5%
-9.8K weekly downloads
30-day growth
-4.2%
-12K weekly downloads
90-day growth
-0.9%
-2.5K weekly downloads
Rank
#481
▼ 22 in 7 days

About babel-plugin-transform-function-bind

babel-plugin-transform-function-bind

Compile the new function bind operator :: to ES5.

Detail

obj::func
// is equivalent to:
func.bind(obj)

obj::func(val)
// is equivalent to:
func.call(obj, val)

::obj.func(val)
// is equivalent to:
func.call(obj, val)

Try in REPL

Example

Basic
const box = {
  weight: 2,
  getWeight() { return this.weight; },
};

const { getWeight } = box;

console.log(box.getWeight()); // prints '2'

const bigBox = { weight: 10 };
console.log(bigBox::getWeight()); // prints '10'

// Can be chained:
function add(val) { return this + val; }

console.log(bigBox::getWeight()::add(5)); // prints '15'

Try in REPL

Using with document.querySelectorAll

It can be very handy when used with document.querySelectorAll:

const { map, filter } = Array.prototype;

let sslUrls = document.querySelectorAll('a')
                ::map(node => node.href)
                ::filter(href => href.substring(0, 5) === 'https');

console.log(sslUrls);

Try in REPL

document.querySelectorAll returns a NodeList element which is not a plain array, so you normally can't use the map function on it, and have to use it this way: Array.prototype.map.call(document.querySelectorAll(...), node => { ... }). The above code using the :: will work because it is equivalent to:

const { map, filter } = Array.prototype;

let sslUrls = document.querySelectorAll('a');
sslUrls = map.call(sslUrls, node => node.href);
sslUrls = filter.call(sslUrls, href => href.substring(0, 5) === 'https');

console.log(sslUrls);
Auto self binding

When nothing is specified before the :: operator, the function is bound to its object:

$('.some-link').on('click', ::view.reset);
// is equivalent to:
$('.some-link').on('click', view.reset.bind(view));

Installation

npm install --save-dev babel-plugin-transform-function-bind

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-function-bind"]
}
Via CLI
babel --plugins transform-function-bind script.js
Via Node API
require("babel-core").transform("code", {
  plugins: ["transform-function-bind"]
});

References

Description from the npm listing.

  • babel-plugin

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-transform-function-bind weekly downloads on npm, last 90 days: 273,092 weekly downloads as of Dec 5, 2026, -0.9% over 90 days.babel-plugin-transform-function-bindWeekly downloads on npm · Last 90 days273,092downloads / week-0.9% over 90 days0100K200K300K400K500KSep 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-transform-function-bind weekly downloads on npm, last 90 days: 273,092 weekly downloads as of Dec 5, 2026, -0.9% over 90 days.

7/30/90-day growth

babel-plugin-transform-function-bind weekly downloads growth on npm: -3.5% over 7 days, -4.2% over 30 days, -0.9% over 90 days.babel-plugin-transform-function-bindWeekly downloads growth on npm273,092downloads / week now7-day growth-9,840 weekly downloads-3.5%30-day growth-11,973 weekly downloads-4.2%90-day growth-2,505 weekly downloads-0.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-function-bind weekly downloads growth on npm: -3.5% over 7 days, -4.2% over 30 days, -0.9% over 90 days.

Ranking history

babel-plugin-transform-function-bind npm ranking history: currently #481 (by weekly downloads).babel-plugin-transform-function-bindnpm ranking · by weekly downloads · Last 90 days#481current rank#410#420#430#440#450#460#470#480#490Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
babel-plugin-transform-function-bind npm ranking history: currently #481 (by weekly downloads).

Listing placement

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

Listing placement

Babel plugins263 listings · 14 pages · page 12, #1 (overall #221)
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-transform-function-bind
Date (UTC)Weekly downloadsChange vs. previous
273,092-889
273,981-1.9K
275,910+2.6K
273,355-6.1K
279,414+2.7K
276,759-714
277,473-5.5K
282,932-3.1K
286,064-447
286,511-4.3K
290,851+3.9K
286,909-2.4K
289,315+3.6K
285,697—

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-transform-function-bind. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.