{"id":24869998,"url":"https://github.com/deepal/node-tiny-message","last_synced_at":"2025-08-02T07:18:36.705Z","repository":{"id":65516559,"uuid":"79715100","full_name":"deepal/node-tiny-message","owner":"deepal","description":"A Simple Message Generator","archived":false,"fork":false,"pushed_at":"2018-11-14T18:15:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T13:05:39.460Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepal.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}},"created_at":"2017-01-22T11:59:36.000Z","updated_at":"2018-11-14T18:15:59.000Z","dependencies_parsed_at":"2023-01-26T22:25:11.311Z","dependency_job_id":null,"html_url":"https://github.com/deepal/node-tiny-message","commit_stats":null,"previous_names":["dpjayasekara/node-tiny-message"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/deepal/node-tiny-message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepal%2Fnode-tiny-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepal%2Fnode-tiny-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepal%2Fnode-tiny-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepal%2Fnode-tiny-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepal","download_url":"https://codeload.github.com/deepal/node-tiny-message/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepal%2Fnode-tiny-message/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268348592,"owners_count":24236297,"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-08-02T02:00:12.353Z","response_time":74,"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":"2025-02-01T03:36:23.772Z","updated_at":"2025-08-02T07:18:36.680Z","avatar_url":"https://github.com/deepal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#node-tiny-message\n\n## A Simple Message Generator\n\nThis is a simple message factory to create success/error messages to be passed among NodeJS functions. This is useful to wrap low level errors/messages and pass them to the top of the stack via callbacks/promises.\n\n####Success Message\n\nSyntax - \n\n```\nrequire('tiny-message').success(\u003cmessage\u003e,\u003cdata\u003e,\u003csuccess_code\u003e);\n```\nExample - \n\n```\nconst message = require('tiny-message');\nconst successMsg = message.success('This is a simple success message', {test:123}, 100);\n```\n\nSuccess message will have following properties:\n\n* **success** - success status (always defaults to **true**)\n* **message** - success message string\n* **data** - Additional data provided\n\n####Error Message\n\nSyntax - \n\n```\nrequire('tiny-message').error(\u003cmessage\u003e,\u003cdata/error object\u003e,\u003cerror_code\u003e);\n```\nExample - \n\n```\nconst message = require('tiny-message');\nconst errorMsg = message.error('This is a simple error message', new Error('test'), 100);\n```\n\nSuccess message will have following properties:\n\n* **success** - success status (always defaults to **false**)\n* **message** - error message string\n* **data** - Additional data/error object provided\n\n####Tests\n```\nnpm test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepal%2Fnode-tiny-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepal%2Fnode-tiny-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepal%2Fnode-tiny-message/lists"}