{"_id":"@bret/invoicer","_rev":"1-c97887b5124aece3c9ab0991cd920ea0","name":"@bret/invoicer","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"name":"@bret/invoicer","description":"generate PDF invoices from json. Maintenance fork of substack/invoicer.","version":"2.0.0","bin":{"invoicer":"bin/cmd.js"},"contributors":[{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"}],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"bugs":{"url":"https://github.com/bcomnes/invoicer/issues"},"dependencies":{"concat-stream":"~1.4.1","minimist":"~0.0.5","mkdirp":"~0.3.5","split":"~0.2.10","sprintf":"~0.1.3","strftime":"~0.6.2","through2":"~0.4.1","text-table":"^0.2.0"},"devDependencies":{"auto-changelog":"^2.2.0","dependency-check":"^4.1.0","gh-release":"^7.0.2","npm-run-all2":"^6.0.4","standard":"^17.0.0","c8":"^8.0.0"},"homepage":"https://github.com/bcomnes/invoicer","keywords":["invoice","pdf","tex","latex","expense","report","consulting"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/invoicer.git"},"scripts":{"prepublishOnly":"git push --follow-tags && gh-release -y","test":"run-s test:*","test:deps":"dependency-check . --no-dev --no-peer","test:standard":"standard","test:node-test":"c8 node --test --test-reporter spec","version":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"_id":"@bret/invoicer@2.0.0","gitHead":"1712e5546f0205ab6a5f4da032abd261624c4286","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"integrity":"sha512-kYlXwjd+DI0za5f8y/cM0PaCDQOgMnS58eFI3r5BGHxMYyMlEPoPY9oW9qzzLRvCIBCI13gP1EAgjeb/vGitYQ==","shasum":"8d9780285908604b0f9161eab529229be9cdc55c","tarball":"https://registry.npmjs.org/@bret/invoicer/-/invoicer-2.0.0.tgz","fileCount":16,"unpackedSize":76644,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHupJHe/tHuIffnnh9GJMWhOR6vB5/wUleTZEngka0GtAiEA9ClOjEyz9aDcD0xvGWUJXfj1lUJaWlR0D9Q2il21MkY="}]},"_npmUser":{"name":"bret","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invoicer_2.0.0_1690826625233_0.4994863605570701"},"_hasShrinkwrap":false},"2.0.1":{"name":"@bret/invoicer","description":"generate PDF invoices from json. Maintenance fork of substack/invoicer.","version":"2.0.1","bin":{"invoicer":"bin/cmd.js"},"contributors":[{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"}],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"bugs":{"url":"https://github.com/bcomnes/invoicer/issues"},"dependencies":{"concat-stream":"^2.0.0","minimist":"^1.2.8","split":"^1.0.1","sprintf":"^0.1.3","strftime":"^0.10.2","through2":"^4.0.2","text-table":"^0.2.0"},"devDependencies":{"auto-changelog":"^2.2.0","dependency-check":"^4.1.0","gh-release":"^7.0.2","npm-run-all2":"^6.0.4","standard":"^17.0.0","c8":"^8.0.0"},"homepage":"https://github.com/bcomnes/invoicer","keywords":["invoice","pdf","tex","latex","expense","report","consulting"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bcomnes/invoicer.git"},"scripts":{"prepublishOnly":"git push --follow-tags && gh-release -y","test":"run-s test:*","test:deps":"dependency-check . --no-dev --no-peer","test:standard":"standard","test:node-test":"c8 node --test --test-reporter spec","version":"auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md"},"standard":{"ignore":["dist"]},"funding":{"type":"individual","url":"https://github.com/sponsors/bcomnes"},"c8":{"reporter":["lcov","text"]},"gitHead":"31ece07d32f5269a643549850d5fc3e1960c860d","_id":"@bret/invoicer@2.0.1","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-GzbwIB+EvHpIJxemrmSs65Xasx7rmzzTZVVfNWSzE8v31J+vtl6K1GyRpdrQtpKwvy8qNTEwrUOYxpSXAYmK8w==","shasum":"69673192d53371250bc4f587e679e20fc935e460","tarball":"https://registry.npmjs.org/@bret/invoicer/-/invoicer-2.0.1.tgz","fileCount":16,"unpackedSize":76883,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEw2I1l/4LzqXw8TXtrH8fsEYtmfpuZlkcXn4d2IGf9nAiBQAqffB3WG0InT0ddVIVq4kOhsZTQHQWNvJ86+n4yCqA=="}]},"_npmUser":{"name":"bret","email":"bcomnes@gmail.com"},"directories":{},"maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/invoicer_2.0.1_1690837722590_0.20857334724383536"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-31T18:03:45.173Z","2.0.0":"2023-07-31T18:03:45.420Z","modified":"2023-07-31T21:08:42.851Z","2.0.1":"2023-07-31T21:08:42.750Z"},"maintainers":[{"name":"bret","email":"bcomnes@gmail.com"}],"description":"generate PDF invoices from json. Maintenance fork of substack/invoicer.","homepage":"https://github.com/bcomnes/invoicer","keywords":["invoice","pdf","tex","latex","expense","report","consulting"],"repository":{"type":"git","url":"git+https://github.com/bcomnes/invoicer.git"},"contributors":[{"name":"Bret Comnes","email":"bcomnes@gmail.com","url":"https://bret.io"}],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"bugs":{"url":"https://github.com/bcomnes/invoicer/issues"},"license":"MIT","readme":"# @bret/invoicer\n[![latest version](https://img.shields.io/npm/v/@bret/invoicer.svg)](https://www.npmjs.com/package/@bret/invoicer)\n[![Actions Status](https://github.com/bcomnes/invoicer/workflows/tests/badge.svg)](https://github.com/bcomnes/invoicer/actions)\n[![Coverage Status](https://coveralls.io/repos/github/bcomnes/invoicer/badge.svg?branch=master)](https://coveralls.io/github/bcomnes/invoicer?branch=master)\n[![downloads](https://img.shields.io/npm/dm/@bret/invoicer.svg)](https://npmtrends.com/@bret/invoicer)\n\ngenerate PDF invoices from json. Maintenance fork of [substack/invoicer](https://www.npmjs.com/package/invoicer).\n\n```\nnpm install @bret/invoicer\n```\n\n# example\n\n``` json\n[\n  {\"title\":\"consulting\",\"rate\": 100, \"hours\":[\n    {\"date\":\"2075-08-27\",\"hours\":2.5},\n    {\"date\":\"2075-08-28\",\"hours\":7},\n    {\"date\":\"2075-09-01\",\"hours\":5.5}\n  ]},\n  {\"title\":\"travel\",\"items\":[\n    {\"title\":\"airfare\",\"amount\":750},\n    {\"title\":\"hotel\",\"amount\":240}\n  ]},\n  {\"title\":\"hosting\",\"amount\":40}\n]\n```\n\n``` bash\n$ invoicer -r 'BEEPCORP HOLDINGS LTD' -e expenses.json -o invoice.pdf\n```\n\nThe first time you run invoicer you will be prompted to enter your name,\naddress, email, and currency.\n\nOnce invoicer finishes you will have a fancy `invoice.pdf`.\n\n_How_ fancy an invoice? Glad you asked:\n\n![Screenshot of PDF invoice](images/invoice.png)\n\n# usage\n\n```\nusage: invoicer -r 'BEEPCORP HOLDINGS LTD' -e expenses.json -o invoice.pdf\n\n  -r, --rcpt      invoice receipient\n  -e, --expenses  expense sheet. If not given or '-', read from stdin.\n  -o, --output    generate a pdf for this filename\n  -m, --mode      mode to use (implied by the extension in -o, otherwise \"text\")\n  -t, --template  use a custom LaTeX template\n  -c FILE         config file (default: ~/.config/invoicer/config.json)\n\nHere is an example expenses.json file:\n\n  [\n    {\"title\":\"consulting\",\"rate\": 100, \"hours\":[\n      {\"date\":\"2075-08-27\",\"hours\":2.5},\n      {\"date\":\"2075-08-28\",\"hours\":7},\n      {\"date\":\"2075-09-01\",\"hours\":5.5}\n    ]},\n    {\"title\":\"travel\",\"items\":[\n      {\"title\":\"airfare\",\"amount\":750},\n      {\"title\":\"hotel\",\"amount\":240}\n    ]},\n    {\"title\":\"hosting\",\"amount\":40}\n  ]\n\nFor each `row` in the json array, `invoicer` only looks for:\n\n* `row.rate` and a `row.hours` array\n* `row.items` array\n* `row.amount`\n\nEach row should have a title.\n```\n\n# install\n\nYou'll need the `pdflatex` command first from\n[texlive](http://www.tug.org/texlive/acquire-netinstall.html).\n\nIf you're on a debianish system you can do: `sudo apt-get install texlive`.\n\nOn windows you can use [w32tex](http://w32tex.org/).\n\nOnce all that is out of the way, install with [npm](https://npmjs.org) to get\nthe `invoicer` command:\n\n```\nnpm install -g @bret/invoicer\n```\n\n# license\n\nMIT\n","readmeFilename":"README.md"}