{"id":23488438,"url":"https://github.com/onesy-me/subscription","last_synced_at":"2026-04-11T11:01:43.548Z","repository":{"id":44306840,"uuid":"454218832","full_name":"onesy-me/subscription","owner":"onesy-me","description":"Subscription methods management","archived":false,"fork":false,"pushed_at":"2025-09-29T20:37:43.000Z","size":665,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T10:26:17.572Z","etag":null,"topics":["amaui","back-end","backend","browser","front-end","frontend","javascript","js","library","node","nodejs","sub","subscription","subscriptions","typescript","utils","web"],"latest_commit_sha":null,"homepage":"https://docs.onesy.me/library/subscription","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onesy-me.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-01T00:44:44.000Z","updated_at":"2025-09-29T20:37:47.000Z","dependencies_parsed_at":"2024-03-29T23:27:29.994Z","dependency_job_id":"d920f43b-e413-491a-84c4-62f042cad41e","html_url":"https://github.com/onesy-me/subscription","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"4c20b5320bd0b06415d0eacc5b784ccb0e11c82f"},"previous_names":["onesy-me/amaui-subscription","amaui-org/amaui-subscription"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onesy-me/subscription","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fsubscription","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fsubscription/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fsubscription/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fsubscription/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onesy-me","download_url":"https://codeload.github.com/onesy-me/subscription/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fsubscription/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31677819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"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":["amaui","back-end","backend","browser","front-end","frontend","javascript","js","library","node","nodejs","sub","subscription","subscriptions","typescript","utils","web"],"created_at":"2024-12-24T23:11:29.027Z","updated_at":"2026-04-11T11:01:43.543Z","avatar_url":"https://github.com/onesy-me.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003c/br\u003e\n\u003c/br\u003e\n\n\u003cp align='center'\u003e\n  \u003ca target='_blank' rel='noopener noreferrer' href='#'\u003e\n    \u003cimg width='auto' height='84' src='https://raw.githubusercontent.com/onesy-me/onesy/refs/heads/main/utils/images/logo.png' alt='onesy logo' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align='center'\u003eonesy Subscription\u003c/h1\u003e\n\n\u003ch3 align='center'\u003e\n  \u003csub\u003eMIT license\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eProduction ready\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eUMD 2.7kb gzipped\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003e100% test cov\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eBrowser and Nodejs\u003c/sub\u003e\n\u003c/h3\u003e\n\n\u003cp align='center'\u003e\n    \u003csub\u003eVery simple code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eModern code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eJunior friendly\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eTypescript\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eMade with :yellow_heart:\u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n### Add\n\n```sh\nyarn add @onesy/subscription\n```\n\n### Use\n\n```javascript\n  import OnesySubscription from '@onesy/subscription';\n\n  // Make a new subscription instance\n  // with an optional initial value\n  const onesySub = new OnesySubscription('🙂');\n\n  // Value\n  onesySub.value;\n\n  // '🙂'\n\n  const method = (...value) =\u003e console.log('Yup, I got it ', ...value);\n\n  const method1 = value =\u003e console.log('Yup, I got it as well ', value);\n\n  // Methods subscribe\n  onesySub.subscribe(method);\n\n  onesySub.subscribe(method1);\n\n  // Emit a value to all subscribed methods\n  // a value always emitted as arguments received by emit method\n  onesySub.emit('🌱', '🌱', '🌱', '🌱');\n\n  // method, log:\n  // Yup, I got it 🌱 🌱 🌱 🌱\n\n  // method1, log:\n  // Yup, I got it as well 🌱\n\n  // Methods unsubscribe\n  onesySub.unsubscribe(method);\n\n  onesySub.unsubscribe(method1);\n\n  // or with anonymous method\n  const subscription = onesySub.subscribe(value =\u003e console.log(value));\n\n  subscription.unsubscribe();\n```\n\n### Dev\n\nInstall\n\n```sh\nyarn\n```\n\nTest\n\n```sh\nyarn test\n```\n\n### Prod\n\nBuild\n\n```sh\nyarn build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Fsubscription","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonesy-me%2Fsubscription","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Fsubscription/lists"}