Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Total Shots Ratio (tsr) is a means of expressing the number of shots taken by a team to the number of shots condeded. Theoretically, more successful teams should have higher TSR's.
TSR is a very simple calculation. The number of shots created by a team is divided by the numbers of shot created plus the number of shots conceded.
TSR = (taken / ( taken + conceded))
Install the module with: npm install tsr
Require the module in your js: var tsr = require('tsr');
TSR takes two arguments: shots taken + shots conceded. You can pass in either numbers or arrays.
tsr(taken, conceded);
tsr(10, 10); // 0.5
tsr(10, 30); // 0.25
tsr([5,5], [15,15]); // 0.25
There is a fantastic overview of TSR and a few more complex alternatives over at 11tegen11 that you might want to check out. Thanks @11tegen11
Copyright (c) 2013 jacquestardie
Licensed under the MIT license.
FAQs
TypeScript Remove (tsr) is a utility that removes unused code from TypeScript projects – It's like tree shaking, but for source files
The npm package tsr receives a total of 315 weekly downloads. As such, tsr popularity was classified as not popular.
We found that tsr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.