{"id":25000,"library":"bind-operator","title":"bind-operator","description":"Transpiler that enables the ECMAScript bind operator (::) syntax, allowing functions to be called with a context object using a pipeline-style operator. Version 1.0.0, last updated in 2015. This package is an experimental implementation of a deprecated proposal and is not actively maintained. It transforms :: syntax into .call() or .bind() calls. Compared to alternatives like Babel's plugin, it is standalone and minimal, but lacks updates and broader ecosystem support.","status":"deprecated","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/ForbesLindesay/bind-operator","tags":["javascript"],"install":[{"cmd":"npm install bind-operator","lang":"bash","label":"npm"},{"cmd":"yarn add bind-operator","lang":"bash","label":"yarn"},{"cmd":"pnpm add bind-operator","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is CJS-only; ESM import not supported.","wrong":"import bindOperator from 'bind-operator'","symbol":"bind-operator","correct":"require('bind-operator')"}],"quickstart":{"code":"const bindOperator = require('bind-operator');\nconst fs = require('fs');\nconst input = fs.readFileSync('input.js', 'utf8');\nconst output = bindOperator.compile(input);\nfs.writeFileSync('output.js', output, 'utf8');","lang":"javascript","description":"Shows how to use the bind-operator transpiler programmatically to transform a file containing :: syntax."},"warnings":[{"fix":"Use standard function methods (.call, .bind, .apply) or switch to Babel with @babel/plugin-proposal-bind-operator.","message":"The bind operator syntax is a deprecated ECMAScript proposal and is not part of any standard.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Consider using alternative transpilers like Babel or TypeScript with appropriate plugins.","message":"The package is unmaintained since 2015 and may have compatibility issues with modern Node.js versions.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use bind-operator to transpile the code before running, or use a runtime that supports it.","cause":"The :: operator is not valid JavaScript without transpilation.","error":"SyntaxError: Unexpected token :"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}