
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@kobayami/number-types
Advanced tools
A minor package that provides type aliases int, long, float and double in TypeScript
npm install --save @kobayami/number-types
A minor package that provides the type aliases int, long, float and double for number types in TypeScript.
The types int, float and double are aliases for number, long is an alias for bigInt.
While the TypeScript compiler cannot enforce the associated number ranges (e.g., restricting int to the 32 bit signed integer range),
these type aliases allow for a more precise notation of number types.
This serves documentation purposes and makes the code more readable.
For example, a variable that represents an index could be declared an int,
while a variable used for computations could be declared a double.
Also, this may simplify things if code should later be ported from TypeScript to some other language.
import { int, double } from "@kobayami/number-types";
function getElementAt<T>(array: T[], index: int): T {
return array[index];
}
function getDistance(velocity: double, time: double): double {
return velocity * time;
}
FAQs
A minor package that provides type aliases int, long, float and double in TypeScript
We found that @kobayami/number-types 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.