{"id":20879220,"url":"https://github.com/7c/coadmin-lib","last_synced_at":"2025-07-29T12:11:51.986Z","repository":{"id":129720759,"uuid":"434660771","full_name":"7c/coadmin-lib","owner":"7c","description":"coadmin-lib","archived":false,"fork":false,"pushed_at":"2025-05-27T11:58:25.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T08:29:22.453Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7c.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,"zenodo":null}},"created_at":"2021-12-03T16:22:00.000Z","updated_at":"2025-05-27T11:58:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"592ffe93-1984-4e2d-9af5-c8caed7573ee","html_url":"https://github.com/7c/coadmin-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7c/coadmin-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fcoadmin-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fcoadmin-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fcoadmin-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fcoadmin-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7c","download_url":"https://codeload.github.com/7c/coadmin-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fcoadmin-lib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267685009,"owners_count":24127704,"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-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-11-18T07:15:36.225Z","updated_at":"2025-07-29T12:11:51.973Z","avatar_url":"https://github.com/7c.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coadmin Project Libraries\n\n## CoadminService Class\n```\nconst { CoadminService } = require('coadmin-lib')\nconst coadmin_service = new CoadminService('ServiceName')\n\ncoadmin_service.report('started')\nwhile(true) {\n    coadmin_service.report_every(1,'loop',false,true)\n}\ncoadmin_service.report('finished')\ncoadmin_service.report_error('exception')\n```\n\n## CoadminService3 Class\n```\nimport { CoadminService3 } from 'coadmin-lib'\n\nconst coadmin_service = new CoadminService3('ServiceName')\n\ncoadmin_service.report('started')\n\n```\n\n\n## typescript\n```\nimport { ReportIssues } from 'coadmin-lib'\n\n// live mode\nconst riLive = new ReportIssues('demoLive',{\n        live: true,\n        server: 'http://127.0.0.1:9091/api',\n        server_path: '/socket2.io',\n        output: true\n})\nriLive.warning('test warning')\n\n// passive mode\nconst riPassive = new ReportIssues('demoPassive',{live: false, folder: '/var/coadmin'})\nriPassive.warning('test warning')\n```\n\n\n## ReportIssues Class\nuse description to describe the issue but without using too many variables inside the description, you can put extra parameters as json, third parameter is for options: 'expireAfter' (in minutes)\n\n```\nconst ReportIssues = new (require('coadmin-lib').ReportIssues)('AppName')\n``\nReportIssues.info('info level description',{extra:'extra info'})\nReportIssues.warning('warn level description',{extra:'extra info'},{ expireAfter:10 })\nReportIssues.fatal('fatal level description',{extra:'extra info'})\nReportIssues.error('error level description',{extra:'extra info'})\n```\n\n\n### NetworkingTests Class\n### Mysql2Tests Class\n### Mysql1Tests Class\n### PuppetClient Class\n### PuppetSummary Class\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fcoadmin-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7c%2Fcoadmin-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fcoadmin-lib/lists"}