{"id":26847614,"url":"https://github.com/dhanushnehru/message-quote-generator","last_synced_at":"2026-04-25T22:33:06.617Z","repository":{"id":285251437,"uuid":"957514878","full_name":"DhanushNehru/message-quote-generator","owner":"DhanushNehru","description":"A package to generate greeting messages with optional random quotes","archived":false,"fork":false,"pushed_at":"2025-03-30T15:46:55.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T16:22:33.172Z","etag":null,"topics":["contributions-welcome","javascript","javascript-library","npm","npm-module","npm-package","npmjs","opensource","quotes","quotes-application"],"latest_commit_sha":null,"homepage":"","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/DhanushNehru.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":"2025-03-30T15:05:58.000Z","updated_at":"2025-03-30T15:46:59.000Z","dependencies_parsed_at":"2025-03-30T16:33:16.203Z","dependency_job_id":null,"html_url":"https://github.com/DhanushNehru/message-quote-generator","commit_stats":null,"previous_names":["dhanushnehru/message-quote-generator"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fmessage-quote-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fmessage-quote-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fmessage-quote-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fmessage-quote-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DhanushNehru","download_url":"https://codeload.github.com/DhanushNehru/message-quote-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246374181,"owners_count":20766854,"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":["contributions-welcome","javascript","javascript-library","npm","npm-module","npm-package","npmjs","opensource","quotes","quotes-application"],"created_at":"2025-03-30T20:22:26.923Z","updated_at":"2026-04-25T22:33:06.570Z","avatar_url":"https://github.com/DhanushNehru.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Message Quote Generator\n\nA lightweight npm package to generate customizable greeting messages with optional random quotes and authors. Perfect for welcome messages, notifications, or any application needing dynamic greetings.\n\n## Features\n- Time-based greetings (e.g., \"Good morning\", \"Good evening\")\n- Customizable greeting templates with placeholders\n- Optional random quotes with or without authors\n- Flexible configuration via constructor options and additional parameters\n- Lightweight date/time handling\n\n## Installation\n\nInstall the package via npm:\n\n```bash\nnpm install message-quote-generator\n```\n\n# Message Quote Generator\n\n## Usage\n\n### Basic Example\nGenerate a simple greeting with a random quote:\n\n```javascript\nconst MessageQuoteGenerator = require('message-quote-generator');\n\nconst generator = new MessageQuoteGenerator({ name: 'Dhanush' });\nconsole.log(generator.generate());\n```\n\nOutput:\n```\n{\n  \"greeting_message\": \"Hi! Dhanush, Good evening!\",\n  \"quote\": \"The best way to predict the future is to create it.\",\n  \"author\": \"Peter Drucker\"\n}\n```\n\n### Custom Template with Additional Parameters  \nUse a custom template and pass additional data:  \n\n```javascript\nconst generator = new MessageQuoteGenerator({\n  name: 'Dhanush',\n  greetingTemplate: 'Hello {name}, {greeting}! You have {tasks} tasks today.'\n});\nconsole.log(generator.generate({ tasks: 5 }));\n```\n\nOutput:\n```\n{\n  \"greeting_message\": \"Hello Dhanush, Good evening! You have 5 tasks today.\",\n  \"quote\": \"Life is what happens when you're busy making other plans.\",\n  \"author\": \"John Lennon\"\n}\n```\n\n### Configuration Options\n\n| Option            | Type    | Default                 | Description |\n|-------------------|--------|-------------------------|-------------|\n| `time`           | String | Current time            | Custom time (e.g., `\"2025-03-30 18:00:00\"`) |\n| `name`           | String | `''`                     | Name to include in the greeting |\n| `period`         | String | Derived from time        | Custom greeting (e.g., `\"Good morning\"`) |\n| `greetingTemplate` | String | `'Hi! {name}, {greeting}!'` | Template for the greeting message |\n| `includeQuote`   | Boolean | `true`                  | Include a random quote in the response |\n| `includeAuthor`  | Boolean | `true`                  | Include the quote's author (if quote is enabled) |\n\n\n## Gitpod\n\nIn the cloud-free development environment where you can directly start coding.\n\nYou can use Gitpod in the cloud  [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/DhanushNehru/message-quote-generator/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushnehru%2Fmessage-quote-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhanushnehru%2Fmessage-quote-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushnehru%2Fmessage-quote-generator/lists"}