Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
life-expectancy
Advanced tools
Life expectancy of humans across the global.
$ npm install --save life-expectancy
const lifeExpectancy = require('life-expectancy');
lifeExpectancy('India');
/*
[ { both: 68.3,
country: 'India',
female: 69.9,
male: 66.9,
rank: 125 } ]
*/
lifeExpectancy('in');
/*
[ { both: 68.3,
country: 'India',
female: 69.9,
male: 66.9,
rank: 125 } ]
*/
lifeExpectancy('Sao Tome and Principe');
/*
[ { both: 67.5,
country: 'Sao Tome and Principe',
female: 69.4,
male: 65.6,
rank: 127 } ]
*/
Type: string
Country code or Country name.
[ { both: 68.3,
country: 'India',
female: 69.9,
male: 66.9,
rank: 125 } ]
In the above response, here is what the keys represent:
both => Life expectancy of both the genders.
country => Yes, it's what you are thinking.
female => female life expectancy in human years.
male => male life expectancy in human years.
rank => Out of all the countires in the world, where does this coutnry stand in terms of life expectancy, lesser the rank higher the life expectancy.
P.S: The data is parsed from World Health Statistics 2016.
MIT © Hemanth.HM
FAQs
Life expectancy of humans across the global.
The npm package life-expectancy receives a total of 0 weekly downloads. As such, life-expectancy popularity was classified as not popular.
We found that life-expectancy 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.