{"id":22199613,"url":"https://github.com/hellocomet/hello-cls","last_synced_at":"2025-07-31T02:33:36.445Z","repository":{"id":34924148,"uuid":"190720606","full_name":"hellocomet/hello-cls","owner":"hellocomet","description":"A Node.js library that implements Continuation-Local Storage for Node 10+","archived":false,"fork":false,"pushed_at":"2022-12-10T18:46:22.000Z","size":936,"stargazers_count":9,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T05:28:49.914Z","etag":null,"topics":["async-hooks","asynchooks","cls","continuation-local-storage","hello-cls","node"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/hellocomet.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":"2019-06-07T09:43:16.000Z","updated_at":"2021-02-10T09:06:45.000Z","dependencies_parsed_at":"2023-01-15T10:32:15.715Z","dependency_job_id":null,"html_url":"https://github.com/hellocomet/hello-cls","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/hellocomet/hello-cls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocomet%2Fhello-cls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocomet%2Fhello-cls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocomet%2Fhello-cls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocomet%2Fhello-cls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellocomet","download_url":"https://codeload.github.com/hellocomet/hello-cls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellocomet%2Fhello-cls/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267977963,"owners_count":24175237,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["async-hooks","asynchooks","cls","continuation-local-storage","hello-cls","node"],"created_at":"2024-12-02T15:15:53.471Z","updated_at":"2025-07-31T02:33:36.413Z","avatar_url":"https://github.com/hellocomet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-cls\n\n[![Version](https://img.shields.io/npm/v/hello-cls.svg)](https://www.npmjs.com/package/hello-cls)\n[![Build status](https://action-badges.now.sh/hellocomet/cls)](https://github.com/hellocomet/cls/actions)\n[![Codecov](https://codecov.io/gh/hellocomet/hello-cls/branch/master/graph/badge.svg)](https://codecov.io/gh/hellocomet/hello-cls)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nA Node.js library that implements Continuation-Local Storage for Node 10+\n\n## Install \u0026 Requirements\n\n`npm i hello-cls`  \nor  \n`yarn add hello-cls`\n\n## How to use\n\n```javascript\nconst { namespace } = require('hello-cls')\n\nconst context = namespace.initContext()\n\n// I can't get a value from the namespace if one has not been set yet\nconsole.log(namespace.get('beer'))\n// -\u003e undefined\n\n// I can set a value to a given key on the namespace\nnamespace.set('beer', '🍺')\n\n// I can get a value from the namespace\nconsole.log(namespace.get('beer'))\n// -\u003e '🍺'\n\n// close with 'true' will flush state immediately\ncontext.close(true)\n\n// I can't get a value from the namespace if the context is closed\nconsole.log(namespace.get('beer'))\n// -\u003e null\n```\n\nMade with ❤️ at [**comet**](https://comet.co/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellocomet%2Fhello-cls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellocomet%2Fhello-cls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellocomet%2Fhello-cls/lists"}