Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
This package is a function with 3 arguments t1, t2, fun(), execution of argument 3 for t1 to t2
This package is a function with 3 arguments t1, t2, fun(), execution of argument 3 for t1 to t2
npm test
PASS src/executeRange.test.ts
executeRange
√ should execute the function at the correct intervals (8 ms)
√ should execute the myPrint function correctly (3 ms)
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 2.53 s, estimated 3 s
Ran all test suites.
Mohammad Hadi Email: mmm.6336@gmail.com
Donate address : TS3ZnWGHfDnW7FcG8p6BYrWAis2nzX3gDG
//USDT TRC20
npm install typescript ts-node @types/node
npx tsc --init
npm install t1_t2_fn
yarn add t1_t2_fn
import { executeRange, myPrint } from 't1_t2_fn';
const from: number = 1;
const to: number = 10;
const everySecond: number = 2;
executeRange(from, to, everySecond, () => {
myPrint(); // or console.log("..test...")
});
when everySecond variable = 2
Test Print
Test Print
Test Print
Test Print
Test Print
when everySecond variable = 5
Test Print
Test Print
FAQs
This package is a function with 3 arguments t1, t2, fun(), execution of argument 3 for t1 to t2
The npm package t1_t2_fn receives a total of 1 weekly downloads. As such, t1_t2_fn popularity was classified as not popular.
We found that t1_t2_fn 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.