Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

periscopic

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

periscopic

periscopic

  • 2.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is periscopic?

The 'periscopic' npm package is primarily used for calculating the potential life expectancy of individuals based on statistical data. It provides a way to estimate how many years of life are lost due to premature death, which can be a powerful tool for research and analysis in public health and social sciences.

What are periscopic's main functionalities?

Calculate Life Expectancy Loss

This feature allows the calculation of lost years of life by providing the age at death and the average life expectancy for the gender. The code sample demonstrates how to use the package to estimate how many years a male who died at age 47 has lost, given the average life expectancy.

const periscopic = require('periscopic');
const lifeExpectancyData = { male: 76, female: 81 };
const person = { gender: 'male', ageAtDeath: 47 };
const yearsLost = periscopic(person, lifeExpectancyData);
console.log(yearsLost);

Other packages similar to periscopic

FAQs

Package last updated on 08 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc