
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Invoicing can be a pain, especially in terms of to context switching. Third-party applications help massively, but can also be expensive and complex. That's why I built a simple cmd-based invoicing tool that can be created locally, right from terminal!
⚠️ the current version is built for macOS only.
Install the tool globally using npm:
npm install -g billed
bill command:bill [command] [input]
your-directory/output/invoices/invoice-<invoiceNr>.pdf| Command | Description |
|---|---|
--init-config | Initialize a new invoice configuration. |
--summary | Display a summary of the current invoice. |
--create | Generate the invoice PDF. |
| Command | Description |
|---|---|
--user-name | Set the user's name. |
--user-email | Set the user's email. |
--user-street | Set the user's street address. |
--user-city | Set the user's city. |
--user-postal | Set the user's postal code. |
--user-country | Set the user's country. |
--user-taxId | Set the user's tax ID. |
--user-bank | Set the user's bank name. |
--user-account | Set the user's bank account number. |
--user-vat | Set the user's VAT rate. |
--user-phone | Set the user's phone number. |
--user-custom:<key> | Set a custom user profile field (e.g., --user-custom:license). |
| Command | Description |
|---|---|
--client-name | Set the client's name. |
--client-email | Set the client's email. |
--client-street | Set the client's street address. |
--client-city | Set the client's city. |
--client-postal | Set the client's postal code. |
--client-country | Set the client's country. |
--client-phone | Set the client's phone number. |
--client-custom:<key> | Set a custom client profile field (e.g., --client-custom:department). |
| Command | Description |
|---|---|
--add-item | Add a work item to the invoice. |
--rmv-item | Remove a work item from the invoice. |
--items | List all work items in the invoice. |
--rate | Set the hourly rate for a work item. |
--hours | Set the number of hours for a work item. |
--pay-days | Set the payment due date. |
--link | Set the payment link. |
--currency | Set the currency for the invoice. |
--invoiceNr | Set the invoice number. |
| Command | Description |
|---|---|
--logo | Set the path to the logo image. |
--theme | Set the theme for the invoice (e.g., light/dark). |
bill --init-config
bill --user-name "John Doe" --user-email "john@example.com" --user-street "123 Main St"
bill --client-name "Jane Smith" --client-email "jane@example.com" --client-street "456 Oak Ave"
bill --add-item "Consultation" --rate 100 --hours 2
bill --invoiceNr "INV-001" --due "2024-12-31" --link "https://example.com/payment" --currency "$" --pay-days 30
bill --user-custom:license "ABC123" --client-custom:department "Cardiology"
bill --create
You can configure your invoice details using a JSON file created in your-directory/contracts/project-contract.json.
Example:
{
"userProfile": {
"name": "John Smith",
"email": "john.smith@example.com",
"address": {
"street": "Mainstreet 1",
"city": "New York",
"postal": "10001",
"country": "United States"
},
"bank": "Bank of America",
"account": "123456789",
"vatRate": 10,
"vat-number": 445663
},
"clientProfile": {
"name": "Sandra Stone",
"email": "sandra_stone@example.com",
"address": {
"street": "Lukin Street",
"city": "London",
"postal": "E1 0AA",
"country": "United Kingdom"
},
"phoneNumber": "+44 192 688 2222"
},
"pdfStyle": {
"theme": {
"textColor": "#121212",
"backgroundColor": "#F2F2F2"
},
"logoPath": "/Users/alex_daemen/Documents/web_projects/billed/billed-pdf/src/assets/logo/icon-only.svg"
},
"projectDetails": {
"currency": "$",
"paymentDueDate": "May 20, 2026",
"paymentLink": "johnsmith.com",
"workItems": [
{
"id": 1,
"activity": "Consultation",
"rate": 80,
"hours": 2
},
{
"id": 2,
"activity": "Logo Design",
"rate": 50,
"hours": 16
},
{
"id": 3,
"activity": "Logo print-out & delivery",
"rate": 20,
"hours": 1
}
],
"invoiceNumber": 1234567,
"amount": "$ 1078.00"
}
}
Save this configuration to a file (e.g., invoice-config.json) and use it with the tool.
This project is licensed under the ISC License.
FAQs
Generate professional PDF invoices from your terminal
The npm package billed receives a total of 30 weekly downloads. As such, billed popularity was classified as not popular.
We found that billed demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.