{"id":13418714,"url":"https://github.com/maaslalani/invoice","last_synced_at":"2025-04-14T20:53:56.143Z","repository":{"id":176539991,"uuid":"652366854","full_name":"maaslalani/invoice","owner":"maaslalani","description":"Command line invoice generator","archived":false,"fork":false,"pushed_at":"2024-06-18T16:40:45.000Z","size":20601,"stargazers_count":1927,"open_issues_count":24,"forks_count":88,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-04-06T23:15:02.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/maaslalani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["maaslalani"]}},"created_at":"2023-06-11T23:09:15.000Z","updated_at":"2025-04-06T19:46:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"769c542b-e8c1-4524-868a-060852781659","html_url":"https://github.com/maaslalani/invoice","commit_stats":null,"previous_names":["maaslalani/invoice"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Finvoice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Finvoice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Finvoice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maaslalani%2Finvoice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maaslalani","download_url":"https://codeload.github.com/maaslalani/invoice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248961083,"owners_count":21189990,"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-07-30T22:01:05.928Z","updated_at":"2025-04-14T20:53:56.116Z","avatar_url":"https://github.com/maaslalani.png","language":"Go","funding_links":["https://github.com/sponsors/maaslalani"],"categories":["Go","开源类库","\u003ca name=\"financial\"\u003e\u003c/a\u003eFinancial tools"],"sub_categories":["图形处理"],"readme":"\u003cimg width=\"1200\" alt=\"Invoice\" src=\"https://github.com/maaslalani/nap/assets/42545625/16dae9d9-390c-49b6-aedd-3f882b17f57b\"\u003e\n\n# Invoice\n\nGenerate invoices from the command line.\n\n## Command Line Interface\n\n```bash\ninvoice generate --from \"Dream, Inc.\" --to \"Imagine, Inc.\" \\\n    --item \"Rubber Duck\" --quantity 2 --rate 25 \\\n    --tax 0.13 --discount 0.15 \\\n    --note \"For debugging purposes.\"\n```\n\n\u003cimg src=\"https://vhs.charm.sh/vhs-66CMd4UQuXkuxX9djHUnGX.gif\" width=\"600\" /\u003e\n\nView the generated PDF at `invoice.pdf`, you can customize the output location\nwith `--output`.\n\n```bash\nopen invoice.pdf\n```\n\n\u003cimg width=\"574\" alt=\"Example invoice\" src=\"https://github.com/maaslalani/nap/assets/42545625/13153de2-dfa1-41e6-a18e-4d3a5cea5b74\"\u003e\n\n### Environment\n\nSave repeated information with environment variables:\n\n```bash\nexport INVOICE_LOGO=/path/to/image.png\nexport INVOICE_FROM=\"Dream, Inc.\"\nexport INVOICE_TO=\"Imagine, Inc.\"\nexport INVOICE_TAX=0.13\nexport INVOICE_RATE=25\n```\n\nGenerate new invoice:\n\n```bash\ninvoice generate \\\n    --item \"Yellow Rubber Duck\" --quantity 5 \\\n    --item \"Special Edition Plaid Rubber Duck\" --quantity 1 \\\n    --note \"For debugging purposes.\" \\\n    --output duck-invoice.pdf\n```\n\n### Configuration File\n\nOr, save repeated information with JSON / YAML:\n\n```json\n{\n    \"logo\": \"/path/to/image.png\",\n    \"from\": \"Dream, Inc.\",\n    \"to\": \"Imagine, Inc.\",\n    \"tax\": 0.13,\n    \"items\": [\"Yellow Rubber Duck\", \"Special Edition Plaid Rubber Duck\"],\n    \"quantities\": [5, 1],\n    \"rates\": [25, 25],\n}\n```\n\nGenerate new invoice by importing the configuration file:\n\n```bash\ninvoice generate --import path/to/data.json \\\n    --output duck-invoice.pdf\n```\n\n### Custom Templates\n\nIf you would like a custom invoice template for your business or company, please\nreach out via:\n\n* [Email](mailto:maas@lalani.dev)\n* [Twitter](https://twitter.com/maaslalani)\n\n## Installation\n\n\u003c!--\n\nUse a package manager:\n\n```bash\n# macOS\nbrew install invoice\n\n# Arch\nyay -S invoice\n\n# Nix\nnix-env -iA nixpkgs.invoice\n```\n\n--\u003e\n\nInstall with Go:\n\n```sh\ngo install github.com/maaslalani/invoice@main\n```\n\nOr download a binary from the [releases](https://github.com/maaslalani/invoice/releases).\n\n## License\n\n[MIT](https://github.com/maaslalani/invoice/blob/master/LICENSE)\n\n## Feedback\n\nI'd love to hear your feedback on improving `invoice`.\n\nFeel free to reach out via:\n* [Email](mailto:maas@lalani.dev)\n* [Twitter](https://twitter.com/maaslalani)\n* [GitHub issues](https://github.com/maaslalani/invoice/issues/new)\n\n---\n\n\u003csub\u003e\u003csub\u003ez\u003c/sub\u003e\u003c/sub\u003e\u003csub\u003ez\u003c/sub\u003ez\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaaslalani%2Finvoice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaaslalani%2Finvoice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaaslalani%2Finvoice/lists"}