{"id":20389273,"url":"https://github.com/fflorent/member-access-assignment","last_synced_at":"2025-06-26T01:02:13.400Z","repository":{"id":57294375,"uuid":"39334902","full_name":"fflorent/member-access-assignment","owner":"fflorent","description":"Sweet.js macro which introduces operator \"=.\"","archived":false,"fork":false,"pushed_at":"2015-07-28T17:12:18.000Z","size":136,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T01:02:04.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fflorent.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":"2015-07-19T13:37:06.000Z","updated_at":"2017-02-21T21:28:17.000Z","dependencies_parsed_at":"2022-08-29T08:01:38.863Z","dependency_job_id":null,"html_url":"https://github.com/fflorent/member-access-assignment","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fflorent/member-access-assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflorent%2Fmember-access-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflorent%2Fmember-access-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflorent%2Fmember-access-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflorent%2Fmember-access-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fflorent","download_url":"https://codeload.github.com/fflorent/member-access-assignment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fflorent%2Fmember-access-assignment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978831,"owners_count":23239416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-15T03:17:05.916Z","updated_at":"2025-06-26T01:02:13.269Z","avatar_url":"https://github.com/fflorent.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Member Access Assignment (=.) operator\n\n[![NPM version](https://badge.fury.io/js/member-access-assignment.svg)](http://badge.fury.io/js/member-access-assignment) [![Build Status](https://travis-ci.org/fflorent/member-access-assignment.svg?branch=master)](https://travis-ci.org/fflorent/member-access-assignment)\n\n\u003e Sweet.js macro that introduces the Member Access Assignment (=.) operator.\n\nBasically, that would expand these two expressions:\n````javascript\n// 1.\nfoo=.replace(\"foo\", \"bar\");\n// 2.\ndocument.getElementById('foo').textContent=.replace(\"foo\", \"bar\");\n````\n\nTo this:\n\n````javascript\n// 1.\nfoo = foo.replace(\"foo\", \"bar\");\n// 2.\n(function () {\n    var lhsContext = document.getElementById('foo');\n    return lhsContext.textContent = lhsContext.textContent.replace('foo', 'bar');\n}());\n````\n\n## Usage\n````bash\n$ npm install --save member-access-assignment\n````\nWrite your code and then:\n````bash\n$ sjs -m member-access-assignment myFile.js\n````\n\nIf you pass `-c` to sjs along with `-o output.js`, it will generate a sourcemap so you get good debugging too!\n\n## Contributing\nTo run the tests:\n````\n$ npm install\n$ grunt test\n````\n\n## License (MIT)\n\nCopyright (c) 2015 Florent Fayolle\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflorent%2Fmember-access-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffflorent%2Fmember-access-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffflorent%2Fmember-access-assignment/lists"}