{"id":16092419,"url":"https://github.com/bukinoshita/npm-donate","last_synced_at":"2025-07-04T00:34:22.851Z","repository":{"id":48020502,"uuid":"97342928","full_name":"bukinoshita/npm-donate","owner":"bukinoshita","description":"Support maintainers with a donation and help them continue with activities.","archived":false,"fork":false,"pushed_at":"2023-01-12T09:52:40.000Z","size":175,"stargazers_count":41,"open_issues_count":7,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-18T18:51:46.736Z","etag":null,"topics":["donate","donation","maintainers","npm","open-source","oss"],"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/bukinoshita.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":"2017-07-15T21:20:20.000Z","updated_at":"2024-11-30T05:17:18.000Z","dependencies_parsed_at":"2023-02-09T11:15:55.601Z","dependency_job_id":null,"html_url":"https://github.com/bukinoshita/npm-donate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bukinoshita/npm-donate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fnpm-donate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fnpm-donate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fnpm-donate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fnpm-donate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bukinoshita","download_url":"https://codeload.github.com/bukinoshita/npm-donate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukinoshita%2Fnpm-donate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261617630,"owners_count":23185058,"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":["donate","donation","maintainers","npm","open-source","oss"],"created_at":"2024-10-09T16:08:12.407Z","updated_at":"2025-07-04T00:34:22.827Z","avatar_url":"https://github.com/bukinoshita.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npm-donate [![Build Status](https://travis-ci.org/bukinoshita/npm-donate.svg?branch=master)](https://travis-ci.org/bukinoshita/npm-donate)\n\n\u003e Support maintainers with a donation and help them continue with activities\n\n\n## Install\n```bash\n$ npm install --save npm-donate\n```\n\n\n## Usage\n```js\nconst npmDonate = require('npm-donate')\n\nnpmDonate('https://npm-donate.now.sh', 100)\n```\n\n\n## Demo\n\n\u003cimg src=\"https://github.com/bukinoshita/credit-card-prompt/blob/master/demo.gif\" width=\"550\"\u003e\n\n\n## API\n\n### npmDonate(apiUrl, amount, [options])\n\nReturns a `promise`\n\n#### apiUrl\n\nType: `string`\u003cbr/\u003e\nRequired\n\nYour API Url where it handles donations.\u003cbr/\u003e\nCheck here: [npm-donate-server](https://github.com/bukinoshita/npm-donate-server)\n\n#### amount\n\nType: `number`\u003cbr/\u003e\nDefault: `0.50` (cents — minimum)\u003cbr/\u003e\nOptional\n\nDonation amount\n\n#### options\n\nType: `object`\n\n##### Google Maps Key\n\nType: `string`\u003cbr/\u003e\n\nIf Google Maps API Key is set, it will lookup for user `state` and `city` using zip code.\n\n##### currency\n\nType: `string`\u003cbr/\u003e\nDefault: `usd`\n\n3-letter ISO code for currency.\u003cbr/\u003e\nCheck supported currencies [here](https://stripe.com/docs/currencies).\n\n##### description\n\nType: `string`\u003cbr/\u003e\nDefault: `Donation`\n\nAn arbitrary string which you can attach to a Charge object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the description of the charge(s) that they are describing.\n\n\n## Related\n\n- [npm-donate-server](https://github.com/bukinoshita/npm-donate-server) — npm donate server to handle donations\n- [credit-card-prompt](https://github.com/bukinoshita/credit-card-prompt) — Credit card prompt with validation and address lookup\n\n\n## License\n\nMIT © [Bu Kinoshita](https://bukinoshita.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Fnpm-donate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbukinoshita%2Fnpm-donate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukinoshita%2Fnpm-donate/lists"}