
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A toolkit to convert easily any units.
Add the npm package tinu to your project:
npm install tinu --save
or clone:
git clone git@github.com:wanadev/tinu.git
Conversion function returns an object that contain the parsed and NORMALIZED value/unit AND some function described bellow :
Tinu.distance(12); // → {value: 12, unit: "cm", ...}
Tinu.distance(12, "mm"); // → {value: 12, unit: "mm", ...}
Tinu.distance(12, "in"); // → {value: 12, unit: "in", ...}
Tinu.distance("12m"); // → {value: 12, unit: "m", ...}
Tinu.distance("12 m"); // → {value: 12, unit: "m", ...}
Tinu.distance("12.00m"); // → {value: 12, unit: "m", ...}
Tinu.area(80, "m2"); // → {value: 80, unit: "m2", ...}
The .to() method converts to the same object but in the requested unit.
Tinu.distance(12).to("m"); // → {value: 0.012, "m", ...}
Tinu.distance(12).to("m").to("mm"); // → {value: 120, "mm", ...}
Tinu.distance(12).to(); // → converts to the default target unit: {value: 0.012, "m", ...}
The .toNumber(unit=null) method converts to a Number in the requested unit
Tinu.distance(12).toNumber("m"); // → 0.012
Tinu.distance(12).toNumber(); // → converts to the default target unit: 0.012
The .toString(unit=null, numericScale=null) method converts to a String in the requested unit, that includes the unit
Tinu.distance(12, "cm").toString("m"); // → "0.012 m"
Tinu.distance(12, "cm").toString("m", 2); // → "0.01 m"
Tinu.distance(12, "cm").toString(); // → converts to the default target unit: "0.012 m"
Please help yourself to add type and other unit if needed !
FAQs
TINU - These Incredibly Naughty Units
The npm package tinu receives a total of 352 weekly downloads. As such, tinu popularity was classified as not popular.
We found that tinu demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.