{"_id":"@bunpmjs/make-invoice","_rev":"2-c33ed05a50e782cf7acfaaa5f4a39ec4","name":"@bunpmjs/make-invoice","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@bunpmjs/make-invoice","version":"0.0.1","author":{"url":"https://github.com/yasakura","name":"Justin Hallé, Lionel JAMAL"},"license":"MIT","_id":"@bunpmjs/make-invoice@0.0.1","maintainers":[{"name":"bunpmjs","email":"bunpm.dev@gmail.com"}],"homepage":"https://github.com/shpaw415/make-invoice#readme","bugs":{"url":"https://github.com/shpaw415/make-invoice/issues"},"dist":{"shasum":"347b3c689aec094316c38abf21c241c4086a5fdd","tarball":"https://registry.npmjs.org/@bunpmjs/make-invoice/-/make-invoice-0.0.1.tgz","fileCount":14,"integrity":"sha512-M2gUy297WvABGpsGauLNBNUwqV64uvPBeeeho9u8kCC0IjhTOz1DB676u8B/hnAq+eeE4tsuXft44Y5gJS1gjQ==","signatures":[{"sig":"MEUCIElGRCWCxIwqGLphBpmfjJq8A3BXRwWfwNi1GgjnTMnKAiEAkPGLoyb74NuCdSYaGlTefyRk2mIVNCO/yboLsuk1zyQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1038924},"main":"index.ts","gitHead":"0eb358ce95154a2105df84173e5fe86503d83b56","_npmUser":{"name":"bunpmjs","email":"bunpm.dev@gmail.com"},"repository":{"url":"git+https://github.com/shpaw415/make-invoice.git","type":"git"},"_npmVersion":"10.2.4","description":"Ce paquet a pour but de créer une facture au format PDF d'après un fichier JSON.","directories":{},"_nodeVersion":"21.5.0","dependencies":{"puppeteer":"23.9.0","react-dom":"18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"18.3.1"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/make-invoice_0.0.1_1733015347381_0.21623145898132234","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@bunpmjs/make-invoice","version":"0.0.2","author":{"url":"https://github.com/yasakura","name":"Justin Hallé, Lionel JAMAL"},"license":"MIT","_id":"@bunpmjs/make-invoice@0.0.2","maintainers":[{"name":"bunpmjs","email":"bunpm.dev@gmail.com"}],"homepage":"https://github.com/shpaw415/make-invoice#readme","bugs":{"url":"https://github.com/shpaw415/make-invoice/issues"},"dist":{"shasum":"60fc3be289ea39921711236c4dbba9ae16ed730b","tarball":"https://registry.npmjs.org/@bunpmjs/make-invoice/-/make-invoice-0.0.2.tgz","fileCount":14,"integrity":"sha512-o25MG2VjVJ6J5G6nz0ZWre9MzeKFL8H5psh9j5nfQ4chvWKJIM+r7n64xMOffFvE+kXqHd7OoE2Sz8BJqU8HZQ==","signatures":[{"sig":"MEQCIC0KO2Yg5roTNUs1ifIzrAXJORvG7Vw5LJ2VDm1SPqyxAiBCgtGUFN7oVXrGYJeMf6ckS1mkbL84EkFZi0dAxzfIjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1039017},"main":"index.ts","gitHead":"0eb358ce95154a2105df84173e5fe86503d83b56","_npmUser":{"name":"bunpmjs","email":"bunpm.dev@gmail.com"},"repository":{"url":"git+https://github.com/shpaw415/make-invoice.git","type":"git"},"_npmVersion":"10.2.4","description":"Ce paquet a pour but de créer une facture au format PDF d'après un fichier JSON.","directories":{},"_nodeVersion":"21.5.0","dependencies":{"puppeteer":"23.9.0","react-dom":"18.3.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@types/react-dom":"18.3.1"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/make-invoice_0.0.2_1733162261748_0.08192366666818529","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@bunpmjs/make-invoice","version":"0.0.3","author":{"name":"Justin Hallé, Lionel JAMAL","url":"https://github.com/yasakura"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/shpaw415/make-invoice.git"},"dependencies":{"react-dom":"18.3.1","puppeteer":"23.9.0"},"main":"index.ts","devDependencies":{"@types/bun":"latest","@types/react-dom":"18.3.1"},"peerDependencies":{"typescript":"^5.0.0"},"_id":"@bunpmjs/make-invoice@0.0.3","gitHead":"0eb358ce95154a2105df84173e5fe86503d83b56","description":"Ce paquet a pour but de créer une facture au format PDF d'après un fichier JSON.","bugs":{"url":"https://github.com/shpaw415/make-invoice/issues"},"homepage":"https://github.com/shpaw415/make-invoice#readme","_nodeVersion":"21.5.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-jFt9UYZYCmecFCNZNAtKsYQ+8mozxqpJzGgzKR1mviYYEs/6gTiwfS5vyMtrnN5+p1K7pqwWeFehwUdg95UBgg==","shasum":"9ff269f01384b8c95a5862f6c7475d50a53e64d6","tarball":"https://registry.npmjs.org/@bunpmjs/make-invoice/-/make-invoice-0.0.3.tgz","fileCount":14,"unpackedSize":1039108,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUkGbifopSQ9r9ipLpkFrdcQlkm558wFcRcrf5k/WybAiAIo4NkDKXv8QpYWd08MOVYyuo9tg9FxAzVdj1qbygnmQ=="}]},"_npmUser":{"name":"bunpmjs","email":"bunpm.dev@gmail.com"},"directories":{},"maintainers":[{"name":"bunpmjs","email":"bunpm.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/make-invoice_0.0.3_1736014402864_0.5423985575682442"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-01T01:09:07.227Z","modified":"2025-01-04T18:13:23.764Z","0.0.1":"2024-12-01T01:09:07.638Z","0.0.2":"2024-12-02T17:57:41.972Z","0.0.3":"2025-01-04T18:13:23.191Z"},"bugs":{"url":"https://github.com/shpaw415/make-invoice/issues"},"author":{"name":"Justin Hallé, Lionel JAMAL","url":"https://github.com/yasakura"},"license":"MIT","homepage":"https://github.com/shpaw415/make-invoice#readme","repository":{"type":"git","url":"git+https://github.com/shpaw415/make-invoice.git"},"description":"Ce paquet a pour but de créer une facture au format PDF d'après un fichier JSON.","maintainers":[{"name":"bunpmjs","email":"bunpm.dev@gmail.com"}],"readme":"# Générateur de facture\n\nCe paquet a pour but de créer une facture au format PDF d'après un fichier JSON.\n\n## Fichier JSON\n\nExemple de la structure attendue :\n\n```json\n{\n  \"type\": \"Facture\",\n  \"date\": \"01/01/1984\",\n  \"invoice_number\": \"XXXXXX\",\n  \"invoice_object\": \"Fusce sapien neque\",\n  \"my_company\": {\n    \"name\": \"Lorem Ipsum\",\n    \"adress\": \"1 rue de la mairie, 12345 Lorem\",\n    \"phone_number\": \"+33 (0)1 02 03 04 05\",\n    \"email\": \"lorem@ipsum.com\",\n    \"siren\": \"001 002 003\",\n    \"bank\": {\n      \"name\": \"Vestibulum orci sapien\",\n      \"iban\": \"XX01 0001 0002 0003 0004 0005 006\",\n      \"bic\": \"XXXXXXXX\"\n    }\n  },\n  \"tva\": {\n    \"active\": \"yes\",\n    \"rate\": \"21.30\",\n    \"text\": \"T.V.A. 21.30 %\"\n  },\n  \"customer\": {\n    \"name\": \"Lorem\",\n    \"adress\": \"2 rue de la cité, 12345 Lorem\",\n    \"siren\": \"123 456 789\",\n    \"tva_intra\": \"FR01 123456789\"\n  },\n  \"item\": [\n    {\n      \"description\": [\n        { \"item\": \"Vestibulum orci sapien\" },\n        { \"item\": \"justo id dignissim varius\" }\n      ],\n      \"amount\": 1,\n      \"unit_price\": \"1.00\"\n    },\n    {\n      \"description\": [{ \"item\": \"Vestibulum orci sapien\" }],\n      \"amount\": 2,\n      \"unit_price\": \"2.00\"\n    }\n  ],\n  \"limit_date_paiement\": \"30 jours à réception de facture\",\n  \"paiement_mode\": [\n    { \"kind\": \"- si nécessaire, par chèque à l'ordre de Lorem Ipsum\" },\n    { \"kind\": \"- de préférence, par virement sur le compte bancaire suivant :\" }\n  ],\n  \"legal_information\": \"Lorem, S.A.R.L. au capital social de XX € - RCS XXX - N° TVA intracommunautaire : FR 01 234 567 890\"\n}\n```\n\nLe script calcul automatiquement les montants totaux.\n\n## Installation du paquet\n\n```\n$ npm i -g make-invoice\n```\n\n## Créer une facture\n\nUne fois le paquet installé, lancez la commande suivante pour générer une facture :\n\n```\n$ make-invoice\n```\n\nPar défaut, le fichier d'entrée est un fichier avec des données de test et le fichier de sortie _invoice.pdf_.\nLe fichier sera généré à l'endroit d'où vous lancez la commande.\n\n### Options\n\nVous pouvez passez à la commande deux options :\n\n```\n  --name  le nom et le chemin du PDF de sortie\n  --json  l'emplacement d'un JSON à utiliser\n```\n\n### Résultats\n\nQuand on génère une facture, on peut la générer avec ou sans la TVA (par exemple pour les auto-entrepreneur). Ce réglage se change dans le fichier _.json_ lu par le script à cet endroit :\n\n```json\n  \"tva\": {\n    \"active\": \"\",\n    \"rate\": \"XX\"\n  }\n```\n\nLes valeurs à mettre se situent au niveau de la clé `active`. Si vous mettez comme valeur `yes` la TVA est automatiquement calculée, selon la valeur renseignée pour la clé `rate`.\n\n#### Exemple\n\nSi vous renseignez l'objet `tva` de la manière suivante :\n\n```json\n  \"tva\": {\n    \"active\": \"yes\",\n    \"rate\": \"5\"\n  }\n```\n\nLe script calculera une TVA de 5% et affichera donc les montants H.T., le montant de la TVA ainsi que la somme TTC.\n\n## Licence MIT\n\nCopyright (c) 2016 Lionel JAMAL\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md"}