babel-plugin-transform-function-bind weekly downloads statistics
By babel (204 listings) · npm · Babel plugins
Compile function bind operator to ES5
babel-plugin-transform-function-bind has 131,440 recorded weekly downloads on npm, a decrease of 51.3% over the past 30 days.
It ranks #422 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -62.5%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About babel-plugin-transform-function-bind
babel-plugin-transform-function-bind
Compile the new function bind operator :: to ES5.
Detail
Try in REPL%3B%0A%0A%3A%3Aobj.func(val)%3B)
Example
Basic
Try in REPL%20%7B%20return%20this.weight%3B%20%7D%2C%0A%7D%3B%0A%0Aconst%20%7B%20getWeight%20%7D%20%3D%20box%3B%0A%0Aconsole.log(box.getWeight())%3B%20%2F%2F%20prints%20'2'%0A%0Aconst%20bigBox%20%3D%20%7B%20weight%3A%2010%20%7D%3B%0Aconsole.log(bigBox%3A%3AgetWeight())%3B%20%2F%2F%20prints%20'10'%0A%2F%2F%20bigBox%3A%3AgetWeight()%20is%20equivalent%20to%20getWeight.call(bigBox)%0A%0A%2F%2F%20Can%20be%20chained%3A%0Afunction%20add(val)%20%7B%20return%20this%20%2B%20val%3B%20%7D%0A%0Aconsole.log(bigBox%3A%3AgetWeight()%3A%3Aadd(5))%3B%20%2F%2F%20prints%20'15')
Using with document.querySelectorAll
It can be very handy when used with document.querySelectorAll:
Try in REPL%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3Amap(node%20%3D%3E%20node.href)%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3A%3Afilter(href%20%3D%3E%20href.substring(0%2C%205)%20%3D%3D%3D%20'https')%3B%0A%0Aconsole.log(sslUrls)%3B%0A)
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:
Auto self binding
When nothing is specified before the :: operator, the function is bound to its object:
Installation
Usage
Via .babelrc (Recommended)
.babelrc
Via CLI
Via Node API
References
• Proposal • Babel Blog: Function Bind Syntax
Description from the npm listing.
- babel-plugin
Where babel-plugin-transform-function-bind sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm Babel plugins plugins
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 Oct 18, 2026. See the methodology.