
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.
Fiscal tax year calculator, retrieve the tax-year, month and week for a given date. Start date of the financial year is editable.
Fiscal tax year calculator, retrieve the tax-year, month and week for a given date.
Install onto your node project using yarn or npm:
yarn add tax-year
npm install tax-year
To use:
'use strict'
const taxYear = require('tax-year')
const today = new Date()
const calculator = taxYear()
function runCalendarTest() {
let computeDate = today;
let days = 1;
console.log("\nTest 3/3: Uk, 1 year")
while (days != 365) {
let result = calculator.getTaxYear(computeDate);
console.log(`\n${days + 1}/365`)
console.log("Result:", result)
computeDate.setDate(computeDate.getDate() + 1);
days++;
}
}
function runTest() {
console.log("Test 1/3: Irish, financial year start")
console.log("Result:", calculator.getTaxYear(today, {
day: 1,
month: 1
}))
console.log("\nTest 2/3: Uk, financial year start")
calculator.setFYS({
day: 6,
month: 4
})
console.log("Result:", calculator.getTaxYear(today))
runCalendarTest(calculator)
}
runTest()
yarn test
npm run test
This project is MIT licensed. By contributing you agree that your contributions will be licensed under its MIT license.
FAQs
Fiscal tax year calculator, retrieve the tax-year, month and week for a given date. Start date of the financial year is editable.
We found that tax-year demonstrated a not healthy version release cadence and project activity because the last version was released 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.