{"id":19545796,"url":"https://github.com/alex-ray/concierge","last_synced_at":"2025-04-26T19:32:03.691Z","repository":{"id":16142016,"uuid":"18887523","full_name":"Alex-ray/concierge","owner":"Alex-ray","description":"A simple fast async deferred event emitting library","archived":false,"fork":false,"pushed_at":"2014-05-12T21:44:31.000Z","size":404,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T02:02:15.530Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alex-ray.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-17T17:41:03.000Z","updated_at":"2023-03-08T04:19:41.000Z","dependencies_parsed_at":"2022-09-03T00:00:18.973Z","dependency_job_id":null,"html_url":"https://github.com/Alex-ray/concierge","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-ray%2Fconcierge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-ray%2Fconcierge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-ray%2Fconcierge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-ray%2Fconcierge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alex-ray","download_url":"https://codeload.github.com/Alex-ray/concierge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251041485,"owners_count":21527204,"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-11T03:41:13.928Z","updated_at":"2025-04-26T19:32:03.233Z","avatar_url":"https://github.com/Alex-ray.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concierge JS\n\nA simple deferred async event emitting library\n\n### Installation\n\n  **Node** **:**\n\n  simply install through npm. ( node package manager )\n```javascript\n  npm install concierge\n```\n\n  **Browser** **:**\u003cbr\u003e\n\ndownload concierge.js and include it in your site directory\n\n### Loading\n\n  **Node** **:**\n```javascript\n  var concierge = require( 'concierge' ) ;\n```\n\n  **Browser** **:**\n```html\n  \u003cscript src=\"concierge.js\"\u003e\u003c/script\u003e\n```\n\n### Using\n\n  Transform any `Object` into an event emitter with an interface of\n```javascript\n  var o = { } ;\n  concierge.convert( o ) ;\n  o.on   {Function}\n  o.once {Function}\n  o.off  {Function}\n  o.emit {Function}\n```\n\n### concierge.on\n  Takes an event and a callback that is called each time the event is emitted\n```javascript\n  o.on( 'uniqEvent', function ( args ) {\n    // called when o.emit( 'uniqEvent', args ) is called\n  } ) ;\n```\n### concierge.once\n  Takes an event and a callback that is only called once\n```javascript\n  o.once( 'uniqEvent', function ( args ) {\n    // only called once\n  } ) ;\n```\n### concierge.off\n  Takes an event and the function you want to stop listening to\n  if no function is passed in it will remove all listeners from that event\n```javascript\n  o.off( 'uniqEvent', callback ) ;\n  o.off( 'uniqEvent' ) ;\n```\n### concierge.emit\n  Will call all callbacks of the given event with all arguments following\n```javascript\n  o.emit( 'uniqEvent', arg1, arg2, ...) ;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-ray%2Fconcierge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-ray%2Fconcierge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-ray%2Fconcierge/lists"}