{"id":15764337,"url":"https://github.com/praneshr/react-easy-bind","last_synced_at":"2026-03-01T11:01:06.144Z","repository":{"id":65372845,"uuid":"74018748","full_name":"praneshr/react-easy-bind","owner":"praneshr","description":"Easily bind class properties and pass additional parameters to callbacks.🍭 🍭 🍭","archived":false,"fork":false,"pushed_at":"2016-12-10T15:18:52.000Z","size":24,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-24T02:27:47.165Z","etag":null,"topics":["babel","decorators","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/praneshr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-17T11:02:43.000Z","updated_at":"2019-01-21T19:53:17.000Z","dependencies_parsed_at":"2023-01-19T23:35:17.327Z","dependency_job_id":null,"html_url":"https://github.com/praneshr/react-easy-bind","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/praneshr/react-easy-bind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praneshr%2Freact-easy-bind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praneshr%2Freact-easy-bind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praneshr%2Freact-easy-bind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praneshr%2Freact-easy-bind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praneshr","download_url":"https://codeload.github.com/praneshr/react-easy-bind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praneshr%2Freact-easy-bind/sbom","scorecard":{"id":743638,"data":{"date":"2025-08-11","repo":{"name":"github.com/praneshr/react-easy-bind","commit":"8a02d81af7453cb062b4f2258e8e08c97dc34cff"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/praneshr/react-easy-bind/releases/4714936","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/praneshr/react-easy-bind/releases/4714936"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T18:09:54.393Z","repository_id":65372845,"created_at":"2025-08-22T18:09:54.393Z","updated_at":"2025-08-22T18:09:54.393Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29967930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T10:55:55.490Z","status":"ssl_error","status_checked_at":"2026-03-01T10:55:55.175Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","decorators","react"],"created_at":"2024-10-04T12:02:39.073Z","updated_at":"2026-03-01T11:01:06.125Z","avatar_url":"https://github.com/praneshr.png","language":"JavaScript","readme":"# React Easy Bind\n\n[![Build Status](https://circleci.com/gh/praneshr/react-easy-bind.svg?circle-token=60cd5e7bc411206f3c1b19c829d9420ab8fa4a0c\u0026style=shield)](https://circleci.com/gh/praneshr/react-easy-bind)\n\n[![NPM](https://nodei.co/npm/react-easy-bind.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/react-easy-bind/)\n\nA class [decorator](https://github.com/wycats/javascript-decorators) for react(compatible with normal classes as well ) which automatically binds all the properties of the class and provides a powerful API to work with react event callbacks.\n\n\n### Installation\n```\nnpm i react-easy-bind --save-dev\n```\nor\n``` html\n\u003cscript src=\"https://unpkg.com/react-easy-bind/lib/index.min.js\"\u003e\u003c/script\u003e\n```\n\n### Heads up\n\nPlease configure your build system/[babel](https://babeljs.io) if you are using `react-easy-bind` as a **decorator**.\n\nPlease check [babel-plugin-transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy) for more details.\n\n### Usage\n``` javascript\n\n//ES6 way\n\nimport React, { Component, PropTypes } from 'react'\nimport easyBind from 'react-easy-bind'\n\n\n@easyBind\nclass Example extends Component {\n  constructor(props) {\n    super(props)\n  }\n\n  handleClick(v, e) {\n    console.log(this)\n  }\n\n  render() {\n    return (\n      \u003cdiv onClick={this.handleClick}\u003e\n        Hello world!\n      \u003c/div\u003e\n    )\n  }\n}\n\n//ES5 way\nvar React = require('react')\nvar easyBind = require('react-easy-bind')\n\nvar Example = React.createClass({\n  handleClick(v, e) {\n    console.log(this)\n  },\n\n  render() {\n    return (\n      \u003cdiv onClick={this.handleClick}\u003e\n        Hello world!\n      \u003c/div\u003e\n    )\n  }\n}\n\neasyBind(Example)\n```\n\n### `this.easyBind(fn[, param1[, param2[, ...]]])` API\n\nThe Easy Bind decorator will register an immutable function to the class and it'll be available as `this.easyBind()`.\n\n`this.easyBind()` creates a wrapping function over the callback function. By this you can pass any additional parameters to the callback handler through `this.easyBind()` without any arrow functions or explicit bindings.\n\n#### Example\n``` javascript\n//before\n\u003cdiv onClick={(pe, e) =\u003e this.handleClick('param1', 'param2', pe, e)}\n\n//now\n\u003cdiv onClick={this.easyBind(this.handleClick, 'param1', 'param2')}\n\nhandleClick(param1, param2, proxyEvent, Event) { }\n```\n`this.easyBind()` takes the `callback function` as the first parameter. And all the other parameters can be anything.\n\n### Development\n\n``` bash\n$ git clone https://github.com/praneshr/react-easy-bind.git\n$ cd react-easy-bind/\n$ npm i\n$ npm start\n```\nMore options can be found under `scripts` in the `package.json`\n\n### License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraneshr%2Freact-easy-bind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraneshr%2Freact-easy-bind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraneshr%2Freact-easy-bind/lists"}