{"id":21173905,"url":"https://github.com/simple-automation-testing/chain-simple","last_synced_at":"2026-01-18T21:32:51.501Z","repository":{"id":143844659,"uuid":"309662362","full_name":"Simple-Automation-Testing/chain-simple","owner":"Simple-Automation-Testing","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-15T09:45:59.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-28T21:38:20.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Simple-Automation-Testing.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-03T11:17:54.000Z","updated_at":"2024-06-15T09:46:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7a23afe-1982-4d95-9655-26e862d6c9db","html_url":"https://github.com/Simple-Automation-Testing/chain-simple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fchain-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fchain-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fchain-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simple-Automation-Testing%2Fchain-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simple-Automation-Testing","download_url":"https://codeload.github.com/Simple-Automation-Testing/chain-simple/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166144,"owners_count":20894652,"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-20T16:52:38.052Z","updated_at":"2026-01-18T21:32:51.495Z","avatar_url":"https://github.com/Simple-Automation-Testing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chain-simple\n\n![npm downloads](https://img.shields.io/npm/dm/chain-simple.svg?style=flat-square)\n\nThe purpose of this library is - build simple and flexible chainable call of the object` methods\n\n```ts\nimport { chainProps } from 'chain-simple';\nimport type { TChainable } from 'chain-simple';\n\nconst obj = {\n  async method1() {\n    return Promise.resolve(1).then(value =\u003e {\n      console.log('method1', value);\n      return value;\n    });\n  },\n  async method2() {\n    return Promise.resolve(2).then(value =\u003e {\n      console.log('method2', value);\n      return value;\n    });\n  },\n  async method3() {\n    return Promise.resolve(3).then(value =\u003e {\n      console.log('method3', value);\n      return value;\n    });\n  },\n};\n\nconst chainableObj: TChainable\u003ctypeof obj\u003e = chainProps(obj);\n\nchainableObj\n  .method1()\n  .method3()\n  .then(val =\u003e console.log(val)); // method1 1 \\n method3 3 \\n 3\n```\n\n```js\nconst { chainProps } = require('chain-simple');\n\nconst obj = {\n  async method1() {\n    return Promise.resolve(1).then(value =\u003e {\n      console.log('method1', value);\n      return value;\n    });\n  },\n  async method2() {\n    return Promise.resolve(2).then(value =\u003e {\n      console.log('method2', value);\n      return value;\n    });\n  },\n  async method3() {\n    return Promise.resolve(3).then(value =\u003e {\n      console.log('method3', value);\n      return value;\n    });\n  },\n};\n\nconst chainableObj: TChainable\u003ctypeof obj\u003e = chainProps(obj);\n\nchainableObj\n  .method1()\n  .method3()\n  .then(val =\u003e console.log(val)); // method1 1 \\n method3 3 \\n 3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-automation-testing%2Fchain-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimple-automation-testing%2Fchain-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimple-automation-testing%2Fchain-simple/lists"}